From 3e2c03ed9dabe12dc20309bb948e6f2dc352f10e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 14 Aug 2026 08:02:49 -0400 Subject: [PATCH] Correct imgutil argument handling --- imgutil/imgutil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgutil/imgutil b/imgutil/imgutil index 25a99860..3fc33bc0 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -1046,7 +1046,7 @@ def main(): capturep.add_argument('node', help='Node to capture image from') capturep.add_argument('profilename', help='Profile name for captured image') args = parser.parse_args() - if args.scratchdir: + if hasattr(args, 'scratchdir') and args.scratchdir: args.scratchdir = os.path.abspath(args.scratchdir) if not args or not args.subcommand: parser.print_usage()