Check to make sure blueprints directory exists

This commit is contained in:
Brian C. Lane 2018-05-15 16:13:56 -07:00
parent 7745a019c0
commit ce715ad15f
1 changed files with 3 additions and 0 deletions

View File

@ -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: