Add lb_facts updating logic after DecortController.lb_restore method call in decort_lb.action method
This commit is contained in:
@@ -133,6 +133,7 @@ class decort_lb(DecortController):
|
|||||||
def action(self,d_state='',restore=False):
|
def action(self,d_state='',restore=False):
|
||||||
if restore == True:
|
if restore == True:
|
||||||
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_state(self.lb_facts, 'enabled')
|
self.lb_state(self.lb_facts, 'enabled')
|
||||||
self.lb_facts['status'] = "ENABLED"
|
self.lb_facts['status'] = "ENABLED"
|
||||||
self.lb_facts['techStatus'] = "STARTED"
|
self.lb_facts['techStatus'] = "STARTED"
|
||||||
|
|||||||
Reference in New Issue
Block a user