diff options
author | Olivia.Zhan <zhan.jie1@zte.com.cn> | 2019-07-12 15:00:04 +0800 |
---|---|---|
committer | Olivia.Zhan <zhan.jie1@zte.com.cn> | 2019-07-12 15:39:16 +0800 |
commit | aef67d1a1fb076f154f9f7595b54590fc7499ee6 (patch) | |
tree | 95f6cdeab82c33024715b92a2a8ff7b16f0e26b7 /genericparser/pub/utils/toscaparsers/pnfmodel.py | |
parent | 7d0fa869b75947729dbe340f8285bc018fa849c4 (diff) |
Update python2 to python3
Issue-ID: VFC-1429
Signed-off-by: Olivia.Zhan <zhan.jie1@zte.com.cn>
Change-Id: I9ec0ccfa5ba200c690a85d582cee41009dfdc0f0
Diffstat (limited to 'genericparser/pub/utils/toscaparsers/pnfmodel.py')
-rw-r--r-- | genericparser/pub/utils/toscaparsers/pnfmodel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genericparser/pub/utils/toscaparsers/pnfmodel.py b/genericparser/pub/utils/toscaparsers/pnfmodel.py index 0f5445f..546861b 100644 --- a/genericparser/pub/utils/toscaparsers/pnfmodel.py +++ b/genericparser/pub/utils/toscaparsers/pnfmodel.py @@ -37,7 +37,7 @@ class PnfdInfoModel(BaseInfoModel): pnf_substitution_mappings = tosca.tpl['topology_template'].get('substitution_mappings', None) if pnf_substitution_mappings: self.pnf['type'] = pnf_substitution_mappings['node_type'] - self.pnf['properties'] = pnf_substitution_mappings['properties'] + self.pnf['properties'] = pnf_substitution_mappings.get('properties', {}) def get_all_cp(self, nodeTemplates): self.pnf['ExtPorts'] = [] |