From a34eb64c6d91daa44c5ef7760afb74a49326b30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Mon, 21 Sep 2020 20:46:07 +0200 Subject: [PATCH] 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 --- tripleoclient/v1/overcloud_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleoclient/v1/overcloud_config.py b/tripleoclient/v1/overcloud_config.py index bbf17251d..ec91c76fa 100644 --- a/tripleoclient/v1/overcloud_config.py +++ b/tripleoclient/v1/overcloud_config.py @@ -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,