6
sys.path.append('hooks/')
8
from charmhelpers.core.hookenv import action_fail
9
from cinder_utils import (
17
"""Pause the Ceilometer services.
18
@raises Exception should the service fail to stop.
20
pause_unit_helper(register_configs())
24
"""Resume the Ceilometer services.
25
@raises Exception should the service fail to start."""
26
resume_unit_helper(register_configs())
29
# A dictionary of all the defined actions to callables (which take
31
ACTIONS = {"pause": pause, "resume": resume}
35
action_name = os.path.basename(args[0])
37
action = ACTIONS[action_name]
39
return "Action %s undefined" % action_name
43
except Exception as e:
47
if __name__ == "__main__":
48
sys.exit(main(sys.argv))