tripleo_config_download: make it work without Swift

This patch will make the tripleo_config_download module to work without
Swift.

Depends-On: https://review.opendev.org/753394
Change-Id: Ifc3bd9cfcfcf77ba5d6355d28b79e5d05209a511
This commit is contained in:
Emilien Macchi 2020-09-22 12:05:38 -04:00
parent d37dfddff3
commit b125689ce3
1 changed files with 7 additions and 11 deletions

View File

@ -107,19 +107,15 @@ def run_module():
_, conn = openstack_cloud_from_module(module)
tripleo = tc.TripleOCommon(session=conn.session)
swift = tripleo.get_object_client()
heat = tripleo.get_orchestration_client()
ooo_config.get_overcloud_config(
swift,
heat,
plan,
config_container,
config_type)
if download:
ooo_config.download_overcloud_config(
swift,
config_container,
work_dir)
swift=False,
heat=heat,
container=plan,
container_config=config_container,
config_dir=work_dir,
config_type=config_type,
preserve_config=download)
result['success'] = True
result['changed'] = True
except Exception as err: