Fix action managed upgrades
Use the resolve_CONFIGS function to resolve the current set of CONFIGS for the charm, rather than directly referencing the CONFIGS global variable which will not be initialized during action invocation. Change-Id: Ifd084c94c9808b49dda39bafed9345bfbf6aab81 Closes-Bug: 1876585
This commit is contained in:
parent
89d663a00f
commit
de30b2f73d
@ -25,7 +25,7 @@ from neutron_utils import (
|
|||||||
|
|
||||||
from neutron_hooks import (
|
from neutron_hooks import (
|
||||||
config_changed,
|
config_changed,
|
||||||
CONFIGS,
|
resolve_CONFIGS,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ def openstack_upgrade():
|
|||||||
|
|
||||||
if do_action_openstack_upgrade(NEUTRON_COMMON,
|
if do_action_openstack_upgrade(NEUTRON_COMMON,
|
||||||
do_openstack_upgrade,
|
do_openstack_upgrade,
|
||||||
CONFIGS):
|
resolve_CONFIGS()):
|
||||||
config_changed()
|
config_changed()
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ TO_PATCH = [
|
|||||||
'config_changed',
|
'config_changed',
|
||||||
'charmhelpers.core.hookenv.log',
|
'charmhelpers.core.hookenv.log',
|
||||||
'charmhelpers.contrib.openstack.utils.juju_log',
|
'charmhelpers.contrib.openstack.utils.juju_log',
|
||||||
|
'resolve_CONFIGS',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user