From f0ad3356bf5e0e7b3d03f5e842f46114d29666e2 Mon Sep 17 00:00:00 2001 From: tierno Date: Tue, 12 May 2020 14:32:37 +0000 Subject: [PATCH] fix other flake8 problem Change-Id: I6a076fa05f734432f48e0ab9826e27bffe0b80ad Signed-off-by: tierno --- osm_nbi/nbi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osm_nbi/nbi.py b/osm_nbi/nbi.py index 64f071e..3a23a1a 100644 --- a/osm_nbi/nbi.py +++ b/osm_nbi/nbi.py @@ -807,8 +807,9 @@ class Server(object): return_text += " {}: {}\n".format(k, v) elif cherrypy.request.method == 'GET': for k, v in kwargs.items(): - self.engine.msg.write(main_topic, k, yaml.load(v), Loader=yaml.SafeLoader) - return_text += " {}: {}\n".format(k, yaml.load(v), Loader=yaml.SafeLoader) + v_dict = yaml.load(v, Loader=yaml.SafeLoader) + self.engine.msg.write(main_topic, k, v_dict) + return_text += " {}: {}\n".format(k, v_dict) except Exception as e: return_text += "Error: " + str(e) return_text += "\n" -- 2.25.1