~thomir-deactivatedaccount/charms/trusty/logstash/trunk-expose-tcp

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Celso Providelo
  • Date: 2015-08-14 16:56:14 UTC
  • mfrom: (51.1.1 fix-config)
  • Revision ID: celso.providelo@canonical.com-20150814165614-t2wr58bbq9pdqnlr
Fixing extra-config config value lookup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    config_data = hookenv.config()
67
67
 
68
68
    # Write custom configuration if set.
69
 
    if config_data['extra_config']:
 
69
    if config_data['extra-config']:
70
70
        with open(os.path.join(BASEPATH, 'conf.d', 'extra.conf'), 'w') as f:
71
 
            f.write(str(base64.b64decode(config_data['extra_config'])))
 
71
            f.write(str(base64.b64decode(config_data['extra-config'])))
72
72
 
73
73
    # Only setup lumberjack protocol if ssl cert and key are configured
74
74
    if config_data['ssl_cert'] and config_data['ssl_key']: