~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 15:08:40 UTC
  • mto: This revision was merged to the branch mainline in revision 52.
  • Revision ID: celso.providelo@canonical.com-20150814150840-dphv3fv8c6p3ia0n
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']: