From d3bcd92616a23f04e6fce6a804045db6310ebb8a Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Tue, 25 Aug 2020 15:34:22 -0400 Subject: [PATCH] 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 --- actions/openstack_upgrade.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/actions/openstack_upgrade.py b/actions/openstack_upgrade.py index 599146bd..70504cc9 100755 --- a/actions/openstack_upgrade.py +++ b/actions/openstack_upgrade.py @@ -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__':