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

View File

@ -184,6 +184,9 @@ if __name__ == '__main__':
except KeyError: except KeyError:
errors.append("Missing group '%s'" % opts.group) 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 # No point in continuing if there are uid or gid errors
if errors: if errors:
for e in errors: for e in errors: