Remove reactive handlers as gone to charms.openstack
This is part of the 'declarative helpers' change in charms.openstack where 'boiler plate' state handlers have been migrated into the charms.openstack module and can be optionally activated in a charm. Change-Id: I28fa2a53cdc108ce7e8432b43d18697841012803
This commit is contained in:
parent
9c90f13164
commit
a25fac6c73
|
@ -1,22 +0,0 @@
|
|||
# handle the update-status hook for all openstack charms
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import charms.reactive as reactive
|
||||
import charmhelpers.core.hookenv as hookenv
|
||||
|
||||
import charms_openstack.charm as charm
|
||||
|
||||
|
||||
@reactive.hook('update-status')
|
||||
def update_status():
|
||||
"""Use the update-status hook to run the assess_status() function for the
|
||||
unit.
|
||||
|
||||
This runs, via the singleton, the assess_status() on the derived class,
|
||||
which is auto-instantiated according the the release.
|
||||
|
||||
To deactivate this function override the assess_status in the derived class
|
||||
to a NOP.
|
||||
"""
|
||||
charm.OpenStackCharm.singleton.assess_status()
|
Loading…
Reference in New Issue