Ensure upstream_gateway key will exist

This commit is contained in:
Joshua Boniface 2023-11-27 13:35:20 -05:00
parent eaf93cdf96
commit eab1ae873b
1 changed files with 3 additions and 3 deletions

View File

@ -218,9 +218,9 @@ def get_configuration_current(config_file):
o_cluster_networks_specific["ipv4"].get("gateway_address", None)
is not None
):
config_cluster_networks_specific[
"{network_type}_gateway"
] = o_cluster_networks_specific["ipv4"]["gateway_address"]
config[f"{network_type}_gateway"] = o_cluster_networks_specific["ipv4"][
"gateway_address"
]
result, msg = validate_floating_ip(
config_cluster_networks_specific, network_type