From f6d895d8f068ed2f73f957bdcdcaca45987e2d49 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 15 May 2018 16:13:56 -0700 Subject: [PATCH] Check to make sure blueprints directory exists --- src/sbin/lorax-composer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbin/lorax-composer b/src/sbin/lorax-composer index d966b699f..4f7f2f62b 100755 --- a/src/sbin/lorax-composer +++ b/src/sbin/lorax-composer @@ -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: