Merge "Fix bootstrap_address parameter name during PGA sync"

This commit is contained in:
Zuul 2024-03-15 12:00:16 +00:00 committed by Gerrit Code Review
commit b749ccfd28
1 changed files with 3 additions and 0 deletions

View File

@ -307,6 +307,9 @@ class SystemPeerManager(manager.Manager):
# Sync subcloud information to peer site
peer_subcloud = self.get_peer_subcloud(dc_client, subcloud_name)
if peer_subcloud:
# The subcloud update API expects 'bootstrap_address'
# instead of 'bootstrap-address'
data["bootstrap_address"] = data.pop(consts.BOOTSTRAP_ADDRESS)
dc_peer_subcloud = dc_client.update_subcloud(region_name,
files, data,
is_region_name=True)