Merge "Optionally check for diskimages on nodepool log generation tool"

This commit is contained in:
Jenkins 2015-08-16 12:17:40 +00:00 committed by Gerrit Code Review
commit 8db7cb45b9

View File

@ -129,8 +129,9 @@ def _get_providers_and_images(config_file):
logging.debug("Added %d providers & images" % len(ret))
# diskimages have a special provider
for diskimage in config['diskimages']:
ret.append(('dib', diskimage['name']))
if 'diskimages' in config:
for diskimage in config['diskimages']:
ret.append(('dib', diskimage['name']))
return ret