2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-08-25 08:06:46 +00:00

Correct imgutil argument handling

This commit is contained in:
Jarrod Johnson
2026-08-14 08:02:49 -04:00
parent 8fe87bf0eb
commit 3e2c03ed9d
+1 -1
View File
@@ -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()