From eab1ae873b62c755aedf19d1d5083fd360a67e4d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 27 Nov 2023 13:35:20 -0500 Subject: [PATCH] Ensure upstream_gateway key will exist --- node-daemon/pvcnoded/util/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node-daemon/pvcnoded/util/config.py b/node-daemon/pvcnoded/util/config.py index e191b86a..19ff5d6b 100644 --- a/node-daemon/pvcnoded/util/config.py +++ b/node-daemon/pvcnoded/util/config.py @@ -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