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:
parent
fa662c0f1a
commit
39291d3c60
3 changed files with 5 additions and 8 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue