mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00: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:
@@ -465,6 +465,8 @@ class ApiParameters(Parameters):
|
||||
def state(self):
|
||||
if self._values['state'] in ['user-up', 'unchecked', 'fqdn-up-no-addr'] and self._values['session'] in ['user-enabled']:
|
||||
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']:
|
||||
return 'forced_offline'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user