Add lb_facts updating logic after DecortController.lb_restore method call in decort_lb.action method

This commit is contained in:
2024-06-05 11:03:33 +03:00
parent 6d003e4541
commit a6a6954d46

View File

@@ -133,6 +133,7 @@ class decort_lb(DecortController):
def action(self,d_state='',restore=False):
if restore == True:
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_facts['status'] = "ENABLED"
self.lb_facts['techStatus'] = "STARTED"