From: tierno Date: Tue, 12 May 2020 14:32:37 +0000 (+0000) Subject: fix other flake8 problem X-Git-Tag: release-v8.0-start~18 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=f1509b299d7453b9095487346ddc223cda97e470;p=osm%2FNBI.git fix other flake8 problem Change-Id: I6a076fa05f734432f48e0ab9826e27bffe0b80ad Signed-off-by: tierno --- 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"