Fix in is_cloud_project

Handle missing extension_props attribute.
This commit is contained in:
Francesco Siddi 2019-04-04 00:50:35 +02:00
parent 4afe23e284
commit 3d6b2452d6

View File

@ -95,6 +95,10 @@ class CloudExtension(PillarExtension):
Requires the presence of the 'cloud' key in extension_props
"""
if project.extension_props is None:
# There are no extension_props on this project
return False
try:
pprops = project.extension_props[EXTENSION_NAME]
except AttributeError: