Use register_configs() in openstack-upgrade action
CONFIGS global variable is no longer populated at load time instead is expected to use register_configs() function as pause/resume actions do. Change-Id: Id2504b40e09220c6cb6bb878727ffa181263e3f1 Closes-Bug: #1887483 Related-Bug: #1879537
This commit is contained in:
parent
ed8bdede6f
commit
d3bcd92616
@ -37,10 +37,12 @@ from charmhelpers.contrib.openstack.utils import (
|
||||
|
||||
from glance_relations import (
|
||||
config_changed,
|
||||
CONFIGS
|
||||
)
|
||||
|
||||
from glance_utils import do_openstack_upgrade
|
||||
from glance_utils import (
|
||||
do_openstack_upgrade,
|
||||
register_configs,
|
||||
)
|
||||
|
||||
|
||||
def openstack_upgrade():
|
||||
@ -52,7 +54,7 @@ def openstack_upgrade():
|
||||
on config-changed."""
|
||||
if (do_action_openstack_upgrade('glance-common',
|
||||
do_openstack_upgrade,
|
||||
CONFIGS)):
|
||||
register_configs())):
|
||||
config_changed()
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user