From 3d6b2452d6d3fdcc024d9e1642bae836068f9f0b Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Thu, 4 Apr 2019 00:50:35 +0200 Subject: [PATCH] Fix in is_cloud_project Handle missing extension_props attribute. --- cloud/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloud/__init__.py b/cloud/__init__.py index a3bcadb..d0bef8e 100644 --- a/cloud/__init__.py +++ b/cloud/__init__.py @@ -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: