Merge "Dedup host entries in the exported data for stacks"

This commit is contained in:
Zuul 2021-01-26 10:18:08 +00:00 committed by Gerrit Code Review
commit 6aba4589b4
2 changed files with 5 additions and 1 deletions

View File

@ -59,7 +59,8 @@ class TestOvercloudExport(utils.TestCommand):
False,
path)
self.assertEqual(
{'parameter_defaults': {'key': 'value',
{'parameter_defaults': {'AddVipsToEtcHosts': False,
'key': 'value',
'key0': 'value0'}},
mock_safe_dump.call_args[0][0])

View File

@ -89,6 +89,9 @@ class ExportOvercloud(command.Command):
not parsed_args.no_password_excludes)
data.update(export.export_stack(
clients.orchestration, stack, False, config_download_dir))
# do not add extra host entries for VIPs for stacks deployed off that
# exported data, since it already contains those entries
data.update({'AddVipsToEtcHosts': False})
data = dict(parameter_defaults=data)
# write the exported data