Skip to content

Commit

Permalink
Fix bug in configuration only images
Browse files Browse the repository at this point in the history
  • Loading branch information
rappdw committed Dec 12, 2018
1 parent 34cfe1d commit 07ccb50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dockerutils/image_conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def get_image_designation(image, config=None):
def get_image_name(config, image):
if image in config.sections():
if 'name' in config[image]:
if 'prefix' in config[image] and not config[image]['prefix'] in ['False', 'false', 'F', 'f']:
if 'prefix' not in config[image] or \
('prefix' in config[image] and not config[image]['prefix'] in ['False', 'false', 'F', 'f']):
return f'{get_default_project_name()}-{config[image]["name"]}'
else:
return f'{config[image]["name"]}'
Expand Down

0 comments on commit 07ccb50

Please sign in to comment.