Removing restart on license post

This commit is contained in:
Bilal Baqar
2015-11-21 15:44:24 -08:00
parent da05e48642
commit 43492c939e
2 changed files with 5 additions and 19 deletions

View File

@@ -66,13 +66,14 @@ def config_changed():
This hook is run when a config parameter is changed.
It also runs on node reboot.
'''
if post_pg_license():
log("PLUMgrid License Posted")
return 1
if add_lcm_key():
log("PLUMgrid LCM Key added")
return 1
charm_config = config()
if charm_config.changed('plumgrid-license-key'):
if post_pg_license():
log("PLUMgrid License Posted")
return 1
if charm_config.changed('fabric-interfaces'):
if not fabric_interface_changed():
log("Fabric interface already set")