mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
keyring & keyring_info: import shlex directly (#10981)
* keyring & keyring_info: import shlex directly * add changelog frag
This commit is contained in:
3
changelogs/fragments/10981-keyring-shlex.yml
Normal file
3
changelogs/fragments/10981-keyring-shlex.yml
Normal 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).
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user