~plumgrid-team/charms/trusty/plumgrid-director/trunk

« back to all changes in this revision

Viewing changes to hooks/pg_dir_hooks.py

  • Committer: bbaqar at plumgrid
  • Date: 2016-04-25 09:14:38 UTC
  • mfrom: (30.1.3 plumgrid-director)
  • Revision ID: bbaqar@plumgrid.com-20160425091438-4hk5s00dydf00jem
Merge: Liberty/Mitaka support

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    config,
18
18
    relation_set,
19
19
    relation_ids,
20
 
    status_set
 
20
    status_set,
 
21
    is_leader
21
22
)
22
23
 
23
24
from charmhelpers.fetch import (
97
98
        if add_lcm_key():
98
99
            log("PLUMgrid LCM Key added")
99
100
    if charm_config.changed('plumgrid-license-key'):
100
 
        if post_pg_license():
 
101
        if is_leader() and post_pg_license():
101
102
            log("PLUMgrid License Posted")
102
103
    if charm_config.changed('fabric-interfaces'):
103
104
        if not fabric_interface_changed():