mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #5349 from sergevanginderachter/httpmonbugfix
bigip_monitor_http: two small bug fixes
This commit is contained in:
commit
daf90e776e
1 changed files with 20 additions and 22 deletions
|
@ -394,7 +394,7 @@ def main():
|
|||
{'type': 'ITYPE_TIMEOUT',
|
||||
'value': timeout},
|
||||
{'type': 'ITYPE_TIME_UNTIL_UP',
|
||||
'value': interval}]
|
||||
'value': time_until_up}]
|
||||
|
||||
# main logic, monitor generic
|
||||
|
||||
|
@ -425,11 +425,9 @@ def main():
|
|||
# whether it already existed, or was just created, now update
|
||||
# the update functions need to check for check mode but
|
||||
# cannot update settings if it doesn't exist which happens in check mode
|
||||
if monitor_exists and not module.check_mode:
|
||||
result['changed'] |= update_monitor_properties(api, module, monitor,
|
||||
template_string_properties,
|
||||
template_integer_properties)
|
||||
# else assume nothing changed
|
||||
|
||||
# we just have to update the ipport if monitor already exists and it's different
|
||||
if monitor_exists and cur_ipport != ipport:
|
||||
|
|
Loading…
Reference in a new issue