mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
4255c0d2fc
* nmcli: use `stdin` for setting private `wifi_sec` options
I.E.:
* `802-11-wireless-security.leap-password`
* `802-11-wireless-security.psk`
* `802-11-wireless-security.wep-key0`
* `802-11-wireless-security.wep-key1`
* `802-11-wireless-security.wep-key2`
* `802-11-wireless-security.wep-key3`
* Changelog fragement formatting.
* Update changelogs/fragments/3160-pass-wifi-secrets-via-stdin-to-nmcli-module.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Make `wifi_sec_secret_options()` into a constant
* Minor cleanup
`'set ' + key + ' ' + value`
=>
`'set %s %s' % (key, value)`
* Change `casing`
* Change `WIFI_SEC_SECRET_OPTIONS` from `list` to `tuple`
* Update `edit_connection()` to not reset `edit_commands`
It will just re`set` them if `edit_connection()` is called more than
once.
* Do not call `edit_connection()` if `connection_update(*)` fails
* Fixed `pep8` issue `E713` in tests
`test for membership should be 'not in'`
* Simplify `create_connection()`/`modify_connection()` logic
* `WIFI_SEC_SECRET_OPTIONS`=>`SECRET_OPTIONS`, options are prefixed
* Moved `if key in self.SECRET_OPTIONS` into `if value is not None` check
We don't need to do anything is the value is None
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit
|
||
---|---|---|
.. | ||
.keep | ||
2946-python-dnsimple-v2-rewrite.yml | ||
3034-promox-kvm-return-new-id.yaml | ||
3036-archive-root-path-fix.yml | ||
3038-enhance_github_repo_api_url.yml | ||
3041-fix_gitlab_group_members_gitlab_project_mambers.yml | ||
3044-proxmox-inventory-snapshots.yml | ||
3052_proxmox_inventory_plugin.yml | ||
3067-taiga-bugfix.yaml | ||
3068-supervisorctl-bugfix.yaml | ||
3079-report-power-state-hpilo.yaml | ||
3080-java_cert-2460-import_private_key.yml | ||
3081-add-wifi-option-to-nmcli-module.yml | ||
3084-info-checkmode.yaml | ||
3092-gunicorn-refactor.yaml | ||
3093-ejabberd_user-refactor.yaml | ||
3098-django_manage-cmd-list.yaml | ||
3104-deploy_helper-required_if.yaml | ||
3106-apache2_module-review.yaml | ||
3125-hana-query-userstore.yaml | ||
3132-nmcli-dummy.yaml | ||
3135-add-redfish_command-bootoverridemode.yaml | ||
3136-add-wifi-sec-change-detection-to-nmcli-module.yml | ||
3139-tss-lookup-plugin-update-to-make-compatible-with-sdk-v1.yml | ||
3160-pass-wifi-secrets-via-stdin-to-nmcli-module.yml | ||
pkgin-output-after-error.yml |