From 69c90e62a6252fc53a59c8df5ea7b84eb23035ba Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Wed, 8 Nov 2017 15:33:21 +0800 Subject: Fix vfc-catalog convert vl bug Change-Id: Ia58fad1a06768cd8d04243b283b1fba4ea98a106 Issue-ID: VFC-558 Signed-off-by: ying.yunlong --- catalog/pub/utils/toscaparser/basemodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg