Refactor region notification code to not need unit
The (already) refactored region notification code checked for the
'region' value in the remote unit, despite the nova-compute charm not
setting the value. This has been removed. Now that the function only
needs to be set for the relation, it is no longer included in 'unit'
loops.
The utility function is also renamed to
set_region_on_relation_from_config to better reflect it's actual
function.
Reviewed: https:/ /review. opendev. org/668711 /git.openstack. org/cgit/ openstack/ charm-nova- cloud-controlle r/commit/ ?id=452ac31663a 87fd3198896fe2f f498a1fbade769
Committed: https:/
Submitter: Zuul
Branch: master
commit 452ac31663a87fd 3198896fe2ff498 a1fbade769
Author: Alex Kavanagh <email address hidden>
Date: Tue Jul 2 17:43:09 2019 +0100
Refactor region notification code to not need unit
The (already) refactored region notification code checked for the
'region' value in the remote unit, despite the nova-compute charm not
setting the value. This has been removed. Now that the function only
needs to be set for the relation, it is no longer included in 'unit'
loops.
The utility function is also renamed to region_ on_relation_ from_config to better reflect it's actual
set_
function.
Change-Id: I81d9924bebe400 9119505b1d5dccf 2e498925c7e
Related-Bug: #1833420