X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=httpserver.py;h=ce164f36040a86b7da5b61aefbee6f5f236e2d92;hb=be41e22d64055e9ee71e3f4d6d7ca99225a679fb;hp=680fddf7d20b4a21186807a586ef934ef4b1b485;hpb=688b255f3dbde6b78593d0778fb81497341d04f4;p=osm%2FRO.git diff --git a/httpserver.py b/httpserver.py index 680fddf7..ce164f36 100644 --- a/httpserver.py +++ b/httpserver.py @@ -39,7 +39,7 @@ import logging from jsonschema import validate as js_v, exceptions as js_e from openmano_schemas import vnfd_schema_v01, vnfd_schema_v02, \ nsd_schema_v01, nsd_schema_v02, scenario_edit_schema, \ - scenario_action_schema, instance_scenario_action_schema, instance_scenario_create_schema, \ + scenario_action_schema, instance_scenario_action_schema, instance_scenario_create_schema_v01, \ tenant_schema, tenant_edit_schema,\ datacenter_schema, datacenter_edit_schema, datacenter_action_schema, datacenter_associate_schema,\ object_schema, netmap_new_schema, netmap_edit_schema @@ -973,9 +973,10 @@ def http_post_instances(tenant_id): if tenant_id != "any": nfvo.check_tenant(mydb, tenant_id) #parse input data - http_content,used_schema = format_in( instance_scenario_create_schema) + http_content,used_schema = format_in( instance_scenario_create_schema_v01) r = utils.remove_extra_items(http_content, used_schema) - if r is not None: print "http_post_instances: Warning: remove extra items ", r + if r is not None: + logger.warning("http_post_instances: Warning: remove extra items %s", str(r)) data = nfvo.create_instance(mydb, tenant_id, http_content["instance"]) return format_out(data) except (nfvo.NfvoException, db_base_Exception) as e: