diff options
author | Haibin Huang <haibin.huang@intel.com> | 2018-11-09 16:10:04 +0800 |
---|---|---|
committer | Haibin Huang <haibin.huang@intel.com> | 2018-11-12 08:03:10 +0000 |
commit | 72d508a5dd1eb7b26dac023af03a1010ba41d472 (patch) | |
tree | 0458a7d8e8bcc61d534efb9082dc35ce64fa8208 | |
parent | 253ac0b27686cc7a91030a4bdcbd615672837660 (diff) |
Artifacts parse fail
workaround for SDC-1900
Change-Id: Ia1377b112f50242373d5cac1cbfa5b4471c464e5
Issue-ID: VFC-1182
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
-rw-r--r-- | catalog/pub/utils/toscaparser/basemodel.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/catalog/pub/utils/toscaparser/basemodel.py b/catalog/pub/utils/toscaparser/basemodel.py index 5ff8dbeb..e0cf9083 100644 --- a/catalog/pub/utils/toscaparser/basemodel.py +++ b/catalog/pub/utils/toscaparser/basemodel.py @@ -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): |