aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-10-24 09:53:47 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-10-24 09:53:47 +0800
commit3a30a42ca054424594f3745d0d8094cd312d3535 (patch)
treea4467414e4d68b340084ee0ca67a0766e371bba4
parent06206d5674d88725c30af023f0466eea217a7ab5 (diff)
Fix check logic of nsd pkg parser
Change-Id: Ida23e296c88ef951bf8f94eadc0551c095e8ff8a Issue-ID: VFC-1163 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/pub/utils/toscaparser/basemodel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog/pub/utils/toscaparser/basemodel.py b/catalog/pub/utils/toscaparser/basemodel.py
index 7df59ff8..705e3aaf 100644
--- a/catalog/pub/utils/toscaparser/basemodel.py
+++ b/catalog/pub/utils/toscaparser/basemodel.py
@@ -85,7 +85,7 @@ class BaseInfoModel(object):
inputs[key] = value
params = inputs
- if params and len(params) > 0:
+ if params:
tmp = self._create_tosca_template(path, None)
if isinstance(params, dict):
for key, value in params.items():