Make config_dir absolute path for ansible
When not specifying an absolute path for config_dir the unarchive command fails. Make config dir absolute path with os.path.abspath(). Closes-Bug: #1896523 Closes-Bug: #1896522 Change-Id: Icf1e2da05d328c70175fef7126519377df095150
This commit is contained in:
parent
42a10178c7
commit
a34eb64c6d
@ -69,7 +69,7 @@ class DownloadConfig(command.Command):
|
||||
self.log.debug("take_action(%s)" % parsed_args)
|
||||
|
||||
name = parsed_args.name
|
||||
config_dir = parsed_args.config_dir
|
||||
config_dir = os.path.abspath(parsed_args.config_dir)
|
||||
config_type = parsed_args.config_type
|
||||
preserve_config_dir = parsed_args.preserve_config_dir
|
||||
extra_vars = {'plan': name,
|
||||
|
Loading…
Reference in New Issue
Block a user