Skip to content

Commit

Permalink
Check to make sure blueprints directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bcl committed May 15, 2018
1 parent 637fc28 commit f6d895d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sbin/lorax-composer
Expand Up @@ -184,6 +184,9 @@ if __name__ == '__main__':
except KeyError:
errors.append("Missing group '%s'" % opts.group)

if not os.path.isdir(opts.BLUEPRINTS):
errors.append("Missing blueprints directory: %s" % opts.BLUEPRINTS)

# No point in continuing if there are uid or gid errors
if errors:
for e in errors:
Expand Down

0 comments on commit f6d895d

Please sign in to comment.