diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2024-09-20 16:06:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 16:06:15 +0200 |
commit | 6efb30b43e89e56061311235b3ee97181039a1c9 (patch) | |
tree | b0299aaf93af54d72b74cd6222097d5e16b152cd /changelogs | |
parent | Add mount_facts module (#83508) (diff) | |
download | ansible-6efb30b43e89e56061311235b3ee97181039a1c9.tar.xz ansible-6efb30b43e89e56061311235b3ee97181039a1c9.zip |
Do not convert floats to ints when there is truncation (#83864)
Adjusted error messages
fixed tests
removed py2 compat tests, since no more py2
Co-authored-by: Matt Clay <matt@mystile.com>
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/fix_floating_ints.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/fix_floating_ints.yml b/changelogs/fragments/fix_floating_ints.yml new file mode 100644 index 0000000000..7a8df434a0 --- /dev/null +++ b/changelogs/fragments/fix_floating_ints.yml @@ -0,0 +1,2 @@ +bugfixes: + - Avoid truncating floats when casting into int, as it can lead to truncation and unexpected results. 0.99999 will be 0, not 1. |