From 64e49f9abd3913c10271c0977d4471e7f18079d6 Mon Sep 17 00:00:00 2001 From: tierno Date: Wed, 19 Jun 2019 14:55:58 +0000 Subject: [PATCH] Fix bug 772. vim_thread tasks key params Change-Id: I533859eb38a02ff3c084b6d53a735660f4ec46b1 Signed-off-by: tierno --- osm_ro/http_tools/request_processing.py | 4 ++-- osm_ro/vim_thread.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/osm_ro/http_tools/request_processing.py b/osm_ro/http_tools/request_processing.py index 0b8a6ca2..f2dabc8a 100644 --- a/osm_ro/http_tools/request_processing.py +++ b/osm_ro/http_tools/request_processing.py @@ -150,11 +150,11 @@ def format_in(default_schema, version_fields=None, version_dict_schema=None, con return client_data, used_schema except (TypeError, ValueError, yaml.YAMLError) as exc: error_text += str(exc) - logger.error(error_text, exc_info=True) + logger.error(error_text) bottle.abort(httperrors.Bad_Request, error_text) except js_e.ValidationError as exc: logger.error( - "validate_in error, jsonschema exception", exc_info=True) + "validate_in error, jsonschema exception") error_pos = "" if len(exc.path)>0: error_pos=" at " + ":".join(map(json.dumps, exc.path)) bottle.abort(httperrors.Bad_Request, error_text + exc.message + error_pos) diff --git a/osm_ro/vim_thread.py b/osm_ro/vim_thread.py index 7b197dac..ffe721c3 100644 --- a/osm_ro/vim_thread.py +++ b/osm_ro/vim_thread.py @@ -258,6 +258,7 @@ class vim_thread(threading.Thread): # task of creation must be the first in the list of related_task assert(related_tasks[0]["action"] in ("CREATE", "FIND")) + task["params"] = None if task["extra"]: extra = yaml.load(task["extra"]) else: -- 2.17.1