Fix access to lb_facts attribute in decort_lb class (in two places)

rc-5.3.0^2
Dmitriy Smirnov 7 months ago
parent 59000feb00
commit 3ce022a800

@ -174,7 +174,7 @@ class decort_lb(DecortController):
self.result['changed'] = False
if self.lb_id:
self.result['msg'] = ("No state change required for LB ID {} because of its "
"current status '{}'.").format(self.lb_id, self.vins_facts['status'])
"current status '{}'.").format(self.lb_id, self.lb_facts['status'])
else:
self.result['msg'] = ("No state change to '{}' can be done for "
"non-existent LB instance.").format(self.amodule.params['state'])
@ -213,7 +213,7 @@ class decort_lb(DecortController):
# in check mode return immediately with the default values
return ret_dict
if self.vins_facts is None:
if self.lb_facts is None:
# if void facts provided - change state value to ABSENT and return
ret_dict['state'] = "ABSENT"
return ret_dict

Loading…
Cancel
Save