Check to make sure blueprints directory exists
This commit is contained in:
parent
7745a019c0
commit
ce715ad15f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user