Artifacts parse fail 14/72414/1
authorHaibin Huang <haibin.huang@intel.com>
Fri, 9 Nov 2018 08:10:04 +0000 (16:10 +0800)
committerHaibin Huang <haibin.huang@intel.com>
Mon, 12 Nov 2018 08:03:10 +0000 (08:03 +0000)
workaround for SDC-1900

Change-Id: Ia1377b112f50242373d5cac1cbfa5b4471c464e5
Issue-ID: VFC-1182
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
catalog/pub/utils/toscaparser/basemodel.py

index 5ff8dbe..e0cf908 100644 (file)
@@ -446,6 +446,15 @@ class BaseInfoModel(object):
                 if isinstance(value, dict):
                     ret.update(value)
                 rets.append(ret)
+        else:
+            # TODO It is workaround for SDC-1900.
+            logger.error("VCPE specific code")
+            ret = {}
+            ret['artifact_name'] = "sw_image"
+            ret['file'] = "ubuntu_16.04"
+            ret['type'] = "tosca.artifacts.nfv.SwImage"
+            rets.append(ret)
+
         return rets
 
     def get_node_by_req(self, node_templates, req):