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:
Felipe Reyes 2020-08-25 15:34:22 -04:00
parent ed8bdede6f
commit d3bcd92616

View File

@ -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__':