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