|
|
|
@ -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
|
|
|
|
|