mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Correct states in bigip_pool_member (#41035)
Fixes: #40631 The module was not correctly handling a certain state where the node could be down, but the monitor was enabled on the node. This patch fixes it.
This commit is contained in:
parent
b578bf9e20
commit
2daf5f3edb
1 changed files with 2 additions and 0 deletions
|
@ -465,6 +465,8 @@ class ApiParameters(Parameters):
|
||||||
def state(self):
|
def state(self):
|
||||||
if self._values['state'] in ['user-up', 'unchecked', 'fqdn-up-no-addr'] and self._values['session'] in ['user-enabled']:
|
if self._values['state'] in ['user-up', 'unchecked', 'fqdn-up-no-addr'] and self._values['session'] in ['user-enabled']:
|
||||||
return 'present'
|
return 'present'
|
||||||
|
elif self._values['state'] == 'down' and self._values['session'] == 'monitor-enabled':
|
||||||
|
return 'present'
|
||||||
elif self._values['state'] in ['user-down'] and self._values['session'] in ['user-disabled']:
|
elif self._values['state'] in ['user-down'] and self._values['session'] in ['user-disabled']:
|
||||||
return 'forced_offline'
|
return 'forced_offline'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue