2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-11 20:16:27 +00:00

Normalize scratchdir globally

There remain issues where relative path can screw up the transient mounts.  Normalize it to be consistent using absolute path every time.
This commit is contained in:
Jarrod Johnson
2026-08-13 13:30:12 -04:00
parent d2d081d94f
commit 4a5e20735d
+2
View File
@@ -1046,6 +1046,8 @@ 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:
args.scratchdir = os.path.abspath(args.scratchdir)
if not args or not args.subcommand:
parser.print_usage()
sys.exit(1)