summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-28 09:08:20 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-28 09:08:20 +0100
commita31676f61a9d938c001a838b79ab80838b431378 (patch)
tree60733e447e4b7e4b9b0d05d34276baa3a2fc79c3
parent3f7cb1eeeb047fd7ea980c3fcb306fa0a96e90aa (diff)
downloadorchestration-a31676f61a9d938c001a838b79ab80838b431378.tar.gz
Case where built systems is empty
-rw-r--r--source/ciat_deployer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/ciat_deployer.py b/source/ciat_deployer.py
index b180e46..c14da31 100644
--- a/source/ciat_deployer.py
+++ b/source/ciat_deployer.py
@@ -12,6 +12,8 @@ def buildcomplete(properties):
if os.path.isfile(BUILT_SYSTEMS_FILE):
with open(BUILT_SYSTEMS_FILE, 'r') as f:
built_systems = yaml.load(f)
+ if not built_systems:
+ built_systems = []
else:
built_systems = []
if system in built_systems: