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:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user