1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

keyring & keyring_info: import shlex directly (#10981)

* keyring & keyring_info: import shlex directly

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-10-26 20:02:03 +13:00 committed by GitHub
parent fa662c0f1a
commit 39291d3c60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 8 deletions

View file

@ -0,0 +1,3 @@
minor_changes:
- keyring - remove provisions for unsupported Python versions (https://github.com/ansible-collections/community.general/pull/10981).
- keyring_info - remove provisions for unsupported Python versions (https://github.com/ansible-collections/community.general/pull/10981).

View file

@ -76,10 +76,7 @@ EXAMPLES = r"""
state: absent
"""
try:
from shlex import quote
except ImportError:
from pipes import quote
from shlex import quote
import traceback
from ansible.module_utils.basic import AnsibleModule, missing_required_lib

View file

@ -62,10 +62,7 @@ passphrase:
sample: Password123
"""
try:
from shlex import quote
except ImportError:
from pipes import quote
from shlex import quote
import traceback
from ansible.module_utils.basic import AnsibleModule, missing_required_lib