nagios module: Can't apply downtime due to failed type check #53150
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bot_closed
bug
This issue/PR relates to a bug.
collection:community.general
collection
Related to Ansible Collections work
module
This issue/PR relates to a module.
monitoring
Monitoring category
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
The Python cast to int returns class(int) when checking if nagios module is receiving a valid number. Unfortunately there is a check to confirm that the cast worked correctly checks for type(int). This means, that, since the code is running in a try/catch, and there is a cast, the only function of the type check is to fail due to forward upgrades in python.
ISSUE TYPE
COMPONENT NAME
nagios
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Replicated on
Linux seanhoward-ThinkPad-P51s 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
MacOS Mojave
Linux ast59-chartreuse-app.dev.roadmunk.com 4.14.88-88.76.amzn2.x86_64 #1 SMP Mon Jan 7 18:43:26 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
STEPS TO REPRODUCE
EXPECTED RESULTS
Downtime created in Nagios
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: