diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2017-02-25 22:27:38 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2017-02-25 22:27:38 +0800 |
commit | 0504c523da459a48721fef74216125d83a4e057d (patch) | |
tree | 896c3ca3921ea56f5be54d2e95ce70b9035f41f5 /tosca2heat/heat-translator/translator/hot/tosca | |
parent | f0108f26fb1f62fefbbc4d5484b87241d563737b (diff) |
Fix ci bug
Fix ci bug when integrated with functest
JIRA:PARSER-117
Change-Id: I054ee8a578c5deeaa9cae383fac4bb0984389053
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/heat-translator/translator/hot/tosca')
-rw-r--r-- | tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py b/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py index b685d6a..9d6a459 100644 --- a/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py +++ b/tosca2heat/heat-translator/translator/hot/tosca/tosca_compute.py @@ -255,7 +255,7 @@ class ToscaCompute(HotResource): images = IMAGES if translator.common.utils.check_for_env_variables(): resp = self._populate_image_dict() - if len(resp.keys()) > 0: + if resp and len(resp.keys()) > 0: images = resp match_all = images.keys() architecture = properties.get(self.ARCHITECTURE) |