~gnuoy/charms/trusty/ceilometer-agent/stable-charm-sync

« back to all changes in this revision

Viewing changes to hooks/ceilometer_hooks.py

  • Committer: James Page
  • Date: 2013-10-20 22:28:18 UTC
  • Revision ID: james.page@canonical.com-20131020222818-cyt325a21a0vr5c0
Add unit tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
)
8
8
from charmhelpers.core.hookenv import (
9
9
    config,
10
 
    relation_ids,
11
 
    related_units,
12
 
    relation_get,
13
10
    Hooks, UnregisteredHookError,
14
11
    log
15
12
)
37
34
        filter_installed_packages(CEILOMETER_AGENT_PACKAGES),
38
35
        fatal=True)
39
36
 
40
 
    # TODO(jamespage): Locally scoped relation for nova and others
41
 
    #ceilometer_utils.modify_config_file(ceilometer_utils.NOVA_CONF, 
42
 
    #    ceilometer_utils.NOVA_SETTINGS)
 
37
# TODO(jamespage): Locally scoped relation for nova and others
 
38
#ceilometer_utils.modify_config_file(ceilometer_utils.NOVA_CONF
 
39
#    ceilometer_utils.NOVA_SETTINGS)
43
40
 
44
41
 
45
42
@hooks.hook("ceilometer-service-relation-changed",