Skip to content

Commit

Permalink
Do not update external network data port if already set (openstack-ch…
Browse files Browse the repository at this point in the history
  • Loading branch information
coreycb authored Aug 24, 2021
1 parent be1e489 commit c759a23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zaza/openstack/utilities/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,11 @@ def configure_networking_charms(networking_data, macs, use_juju_wait=True):
current_data_port = get_application_config_option(
application_name,
networking_data.port_config_key)
if current_data_port == config[networking_data.port_config_key]:
logging.info('Config already set to value')
if current_data_port:
logging.info("Skip update of external network data port config."
"Config '{}' already set to value: {}".format(
networking_data.port_config_key,
current_data_port))
return

model.set_application_config(
Expand Down

0 comments on commit c759a23

Please sign in to comment.