From b125689ce301eef98b4b9865f2013132f99b6b07 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 22 Sep 2020 12:05:38 -0400 Subject: [PATCH] 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 --- .../modules/tripleo_config_download.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py b/tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py index 20040337a..da9153a7d 100644 --- a/tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py +++ b/tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py @@ -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: