Fix overcloud cell export after refactoring

https://review.opendev.org/692909 introduced overcloud export and
refactored the overcloud cell export command which introduces an
issue when calling the cell export:

  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_cell.py",
line 94, in take_action
    data['parameter_defaults'].update(export.export_stack(
KeyError: 'parameter_defaults'
'parameter_defaults'

Change-Id: Ic6b76e31885d0e0b59a650dbd4148b245f6057d6
Closes-Bug: #1852402
Related-Bug: #1850636
(cherry picked from commit 2f16fd696d)
This commit is contained in:
Martin Schuppert 2019-11-13 10:24:41 +01:00
parent bc6d750d8f
commit 315f6d4d21
1 changed files with 5 additions and 4 deletions

View File

@ -91,9 +91,10 @@ class ExportCell(command.Command):
should_filter = False
config_download_dir = os.path.join(MISTRAL_VAR, stack_to_export)
data['parameter_defaults'].update(export.export_stack(
data.update(export.export_stack(
clients.orchestration, stack_to_export, should_filter,
config_download_dir))
data = dict(parameter_defaults=data)
# write the exported data
with open(output_file, 'w') as f:
@ -118,8 +119,8 @@ class ExportCell(command.Command):
- cell role file created
- the exported cell input information file {output_file}
- other specific parameter files for the cell\n
For more details check https://docs.openstack.org/tripleo-docs/
latest/install/advanced_deployment/deploy_cellv2.html#
deploy-the-cell""".format(output_file=output_file)
For more details check https://docs.openstack.org/
project-deploy-guide/tripleo-docs/latest/features/deploy_cellv2.html
""".format(output_file=output_file)
print(msg)