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
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
..
cloud [PR #5981/68d0cac3 backport][stable-5] Ignore more unnecessary import warnings (#5982) 2023-02-12 22:15:46 +01:00
clustering [PR #5767/217a62ac backport][stable-5] consul: minor fixes in docs (#5770) 2023-01-06 15:17:43 +01:00
database Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
files [PR #5808/6ec04973 backport][stable-5] xml children module parameter does not exist (#5838) 2023-01-14 18:34:45 +01:00
identity [PR #5934/78297e44 backport][stable-5] Fix keycloak sanitize_cr (#6035) 2023-02-22 15:20:15 +01:00
monitoring Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
net_tools [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
notification Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
packaging [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
remote_management [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
source_control [PR #5989/cd0a414e backport][stable-5] Update gitlab_project_members.py - typo fix (#5990) 2023-02-13 22:07:05 +01:00
storage Short descriptions (batch3) - massive fix on Capitalization and trailing period (#5521) (#5528) 2022-11-09 21:19:06 +01:00
system [stable-5] Fix pylint errors (#5938) 2023-02-04 17:28:15 +01:00
web_infrastructure [PR #5741/06d72dfe backport][stable-5] htpasswd: improve documentation on crypt_scheme (#5748) 2022-12-31 08:14:57 +01:00