[Fuego] [PATCH] fix_error_in_flat_plot_data_with_extra_newline

Zhong Lu zhongl.fnst at cn.fujitsu.com
Wed Nov 7 02:54:23 UTC 2018


Signer-off-by: Zhong Lu <zhongl.fnst at cn.fujitsu.com>
---
 engine/scripts/parser/common.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine/scripts/parser/common.py b/engine/scripts/parser/common.py
index fe33c61..a6310a3 100644
--- a/engine/scripts/parser/common.py
+++ b/engine/scripts/parser/common.py
@@ -299,7 +299,7 @@ def convert_reference_log_to_criteria(filename):
             old_measure_id, operation = crit_str.split("|")
             ts_name, tc_name, measure_name = split_old_id(old_measure_id)
             tguid = "%s.%s.%s" % (ts_name, tc_name, measure_name)
-            value = lines[i+1]
+            value = lines[i+1].rstrip("\n")
 
             reference = {"value":value, "operator": operation.strip()}
             crit = {"tguid":tguid, "reference": reference }
-- 
2.7.4





More information about the Fuego mailing list