Browse Source

Merge "tripleo_config_download: make it work without Swift"

changes/52/765252/1
Zuul 4 months ago
committed by Gerrit Code Review
parent
commit
2834bcdfd6
1 changed files with 7 additions and 11 deletions
  1. +7
    -11
      tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py

+ 7
- 11
tripleo_ansible/ansible_plugins/modules/tripleo_config_download.py 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:


Loading…
Cancel
Save