~moon127/charms/trusty/ceilometer/add-execd-preinstall

« back to all changes in this revision

Viewing changes to hooks/ceilometer_hooks.py

  • Committer: James Page
  • Date: 2013-10-17 14:41:48 UTC
  • Revision ID: james.page@canonical.com-20131017144148-ry7miy44s1y1gcub
Tidy template, pass config values for logging

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        context.update(contextdb)
154
154
        context['metering_secret'] = get_shared_secret()
155
155
        context['service_port'] = CEILOMETER_PORT
 
156
        context['debug'] = config('debug')
 
157
        context['verbose'] = config('verbose')
156
158
 
157
159
        with open(CEILOMETER_CONF, "w") as conf:
158
160
            conf.write(render_template(os.path.basename(CEILOMETER_CONF),