|
|
@ -135,8 +135,7 @@ class decort_lb(DecortController):
|
|
|
|
self.lb_restore(lb_id=self.lb_id)
|
|
|
|
self.lb_restore(lb_id=self.lb_id)
|
|
|
|
_, self.lb_facts = self._lb_get_by_id(lb_id=self.lb_id)
|
|
|
|
_, self.lb_facts = self._lb_get_by_id(lb_id=self.lb_id)
|
|
|
|
self.lb_state(self.lb_facts, 'enabled')
|
|
|
|
self.lb_state(self.lb_facts, 'enabled')
|
|
|
|
self.lb_facts['status'] = "ENABLED"
|
|
|
|
_, self.lb_facts = self._lb_get_by_id(lb_id=self.lb_id)
|
|
|
|
self.lb_facts['techStatus'] = "STARTED"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.lb_update(
|
|
|
|
self.lb_update(
|
|
|
|
self.lb_facts['primaryNode'],
|
|
|
|
self.lb_facts['primaryNode'],
|
|
|
@ -322,7 +321,7 @@ def main():
|
|
|
|
decon.action(amodule.params['state'])
|
|
|
|
decon.action(amodule.params['state'])
|
|
|
|
elif decon.lb_facts['status'] == "DELETED":
|
|
|
|
elif decon.lb_facts['status'] == "DELETED":
|
|
|
|
if amodule.params['state'] in ['present', 'enabled']:
|
|
|
|
if amodule.params['state'] in ['present', 'enabled']:
|
|
|
|
decon.action(restore=True)
|
|
|
|
decon.action(d_state='started', restore=True)
|
|
|
|
elif (amodule.params['state'] == 'absent' and
|
|
|
|
elif (amodule.params['state'] == 'absent' and
|
|
|
|
amodule.params['permanently']):
|
|
|
|
amodule.params['permanently']):
|
|
|
|
decon.delete()
|
|
|
|
decon.delete()
|
|
|
|