Fix access to lb_facts attribute in decort_lb class (in two places)
This commit is contained in:
@@ -174,7 +174,7 @@ class decort_lb(DecortController):
|
|||||||
self.result['changed'] = False
|
self.result['changed'] = False
|
||||||
if self.lb_id:
|
if self.lb_id:
|
||||||
self.result['msg'] = ("No state change required for LB ID {} because of its "
|
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:
|
else:
|
||||||
self.result['msg'] = ("No state change to '{}' can be done for "
|
self.result['msg'] = ("No state change to '{}' can be done for "
|
||||||
"non-existent LB instance.").format(self.amodule.params['state'])
|
"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
|
# in check mode return immediately with the default values
|
||||||
return ret_dict
|
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
|
# if void facts provided - change state value to ABSENT and return
|
||||||
ret_dict['state'] = "ABSENT"
|
ret_dict['state'] = "ABSENT"
|
||||||
return ret_dict
|
return ret_dict
|
||||||
|
|||||||
Reference in New Issue
Block a user