summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@redhat.com>2015-08-14 13:57:01 -0400
committerJeff Peeler <jpeeler@redhat.com>2015-08-14 13:57:01 -0400
commit67ce01fc625ace5ebef72951fdf59b63af0e9ea6 (patch)
tree9c691710fba888655dd408ab03880454c5ef67ac /tools
parentdf54c15145da51ee73b8024116a1fdc1abb8b874 (diff)
downloadkolla-67ce01fc625ace5ebef72951fdf59b63af0e9ea6.tar.gz
kolla-67ce01fc625ace5ebef72951fdf59b63af0e9ea6.zip
Safely check for dictionary key presence
Accessing the key directly when it doesn't exist was yielding a KeyError. Change-Id: Ice877b74d46d59f2e9ecff051b09245e9d3744e1 Paritally-Implements: blueprint gate-source-builds
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build.py b/tools/build.py
index e0309c270..ac42cac2b 100755
--- a/tools/build.py
+++ b/tools/build.py
@@ -89,7 +89,7 @@ class WorkerThread(Thread):
image['status'] = "parent_error"
return
- if image['source']:
+ if 'source' in image:
self.process_source(image['source'], image['path'])
# Pull the latest image for the base distro only