Fix in is_cloud_project
Handle missing extension_props attribute.
This commit is contained in:
@@ -95,6 +95,10 @@ class CloudExtension(PillarExtension):
|
|||||||
Requires the presence of the 'cloud' key in extension_props
|
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:
|
try:
|
||||||
pprops = project.extension_props[EXTENSION_NAME]
|
pprops = project.extension_props[EXTENSION_NAME]
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
Reference in New Issue
Block a user