Merge pull request #959 from resmo/for-ansible

cloudstack: fix templates not always have checksums
reviewable/pr18780/r1
Brian Coca 9 years ago
commit ea1bd0b078

@ -501,7 +501,7 @@ class AnsibleCloudStackTemplate(AnsibleCloudStack):
return templates['template'][0]
else:
for i in templates['template']:
if i['checksum'] == checksum:
if 'checksum' in i and i['checksum'] == checksum:
return i
return None

Loading…
Cancel
Save