diff options
author | 2017-10-26 18:41:49 +0800 | |
---|---|---|
committer | 2017-10-26 18:41:49 +0800 | |
commit | dd2386894b96b0dbe93817d327e41c19d09fbbf1 (patch) | |
tree | fe32bcfc8070139c482599cbdab0dc4270f586e6 | |
parent | 2a138a6604bee099ea9e2f698c36a7260957aa78 (diff) |
Change '{}' to '' when parse properity
Change-Id: I98b4ffbd91c8f114fa74f59bce151269c6effe97
Issue-Id: VFC-558
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | catalog/pub/utils/toscaparser/basemodel.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/catalog/pub/utils/toscaparser/basemodel.py b/catalog/pub/utils/toscaparser/basemodel.py index 83d17ee3..177551dc 100644 --- a/catalog/pub/utils/toscaparser/basemodel.py +++ b/catalog/pub/utils/toscaparser/basemodel.py @@ -278,6 +278,8 @@ class BaseInfoModel(object): return rets def _verify_value(self, value, inputs, parsed_params): + if value == '{}': + return '' if isinstance(value, str): return self._verify_string(inputs, parsed_params, value) if isinstance(value, list) or isinstance(value, dict): |