Merge "tripleo_push_artifacts: ensure destination exists"

This commit is contained in:
Zuul 2021-08-18 14:37:04 +00:00 committed by Gerrit Code Review
commit 71f4c683c7
1 changed files with 7 additions and 0 deletions

View File

@ -211,6 +211,13 @@ class ActionModule(ActionBase):
ARTIFACTS_ANCHOR,
os.path.basename(filename)
)
self._run_module(
module_name='file',
module_args=dict(
path=os.path.dirname(package_path),
state='directory'
)
)
self._transfer_files(filename=filename, destination=package_path)
results = self._low_level_execute_command(
"tar xvz -C / -f {}".format(package_path),