1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/net_tools
patchback[bot] 76f9bc5b69
[PR #5431/490899f8 backport][stable-5] nmcli: two fixes needed to make wifi.wake-on-wlan settings work properly (#6050)
nmcli: two fixes needed to make wifi.wake-on-wlan settings work properly (#5431)

* nmcli: Convert current value of wifi.wake-on-wlan before comparing

The new value of wifi.wake-on-wlan is specified as an integer, but in
the nmcli output it's specified as a hex string followed by a textual
description of it. Therefore, to determine properly whether it's being
changed we need to pull the hex string out of the current value,
convert it into an integer, and finally convert the integer back to a
string so that we can compare it to the new specified value. Without
this change, whenever wifi.wake-on-wlan is specified in the module
arguments the module will think the value is being changed even when
it isn't.

* nmcli: Handle wifi options correctly when connection type not specified

When an nmcli task does not specify the connection type and the module
ask nmcli for it, the module needs to convert nmcli's
`802-11-wireless` to `wifi`, the term for this connection type used by
the module.

* nmcli: Correctly detect values changed to the integer 0

If the user specifies a value of 0 (without quotes) in a task, we
should interpret that as an actual value, not empty, when comparing
the new value to the old one. Otherwise we incorrectly conclude that
there was no change.

* Changelog fragment for #5431

(cherry picked from commit 490899f87f)

Co-authored-by: Jonathan Kamens <jik@kamens.us>
2023-02-24 09:29:46 +01:00
..
infinity Fix non-matching defaults. (#5452) (#5453) 2022-11-01 19:45:37 +01:00
ldap Short descriptions (batch1) - massive fix on Capitalization and trailing period (#5503) (#5515) 2022-11-09 07:33:03 +01:00
pritunl [stable-5] Fix pylint errors (#5938) 2023-02-04 17:28:15 +01:00
cloudflare_dns.py Normalize more booleans. (#5247) (#5250) 2022-09-06 21:07:46 +02:00
dnsimple.py Adjust booleans in net tools, web infrastructure, and clustering modules. (#5159) (#5173) 2022-08-24 20:22:02 +02:00
dnsimple_info.py multiple modules: removed unused imports (#5258) (#5268) 2022-09-10 12:18:27 +02:00
dnsmadeeasy.py Short descriptions (batch1) - massive fix on Capitalization and trailing period (#5503) (#5515) 2022-11-09 07:33:03 +01:00
gandi_livedns.py Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) (#5068) 2022-08-05 13:17:19 +02:00
haproxy.py multiple modules 2: fixed markups in doc (#5237) (#5244) 2022-09-06 08:05:25 +02:00
ip_netns.py Add more license statements (#5079) (#5088) 2022-08-07 12:03:49 +00:00
ipify_facts.py Adjust booleans in net tools, web infrastructure, and clustering modules. (#5159) (#5173) 2022-08-24 20:22:02 +02:00
ipinfoio_facts.py short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
ipwcli_dns.py multiple modules: removed unused imports (#5258) (#5268) 2022-09-10 12:18:27 +02:00
lldp.py Short descriptions (batch1) - massive fix on Capitalization and trailing period (#5503) (#5515) 2022-11-09 07:33:03 +01:00
netcup_dns.py short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
nmcli.py [PR #5431/490899f8 backport][stable-5] nmcli: two fixes needed to make wifi.wake-on-wlan settings work properly (#6050) 2023-02-24 09:29:46 +01:00
nsupdate.py [PR #5818/5ad703ac backport][stable-5] nsupdate: fix zone lookup (#5852) 2023-01-17 21:32:08 +01:00
omapi_host.py short_description fix batch 2 (#5520) (#5522) 2022-11-09 14:08:55 +01:00
snmp_facts.py [PR #5098/aab22e7f backport][stable-5] Add remaining copyright statements, add licenses sanity test (#5099) 2022-08-14 10:26:44 +02:00