diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-11-08 15:33:21 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2017-11-08 15:33:21 +0800 |
commit | 69c90e62a6252fc53a59c8df5ea7b84eb23035ba (patch) | |
tree | d86438d36207a45d7574c36b782117ddc25e0c62 | |
parent | c5f7410c69a75e66e0f17851f736046057b3eb35 (diff) |
Fix vfc-catalog convert vl bug
Change-Id: Ia58fad1a06768cd8d04243b283b1fba4ea98a106
Issue-ID: VFC-558
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | catalog/pub/utils/toscaparser/basemodel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog/pub/utils/toscaparser/basemodel.py b/catalog/pub/utils/toscaparser/basemodel.py index ef5e5205..fe4043c3 100644 --- a/catalog/pub/utils/toscaparser/basemodel.py +++ b/catalog/pub/utils/toscaparser/basemodel.py @@ -273,7 +273,7 @@ class BaseInfoModel(object): if 'requirements' in node: for item in node['requirements']: for key, value in item.items(): - if key.upper().find('VIRTUAL_LINK') >= 0: + if key.upper().find('VIRTUAL_LINK') >= 0 or key.upper().find('VIRTUALLINK') >= 0: rets.append({"key_name": key, "vl_id": self.get_requirement_node_name(value)}) return rets |