mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Removed the redundant unicode prefixes (#8087)
* removed redundant unicode prefixes * added changelog fragment * Update changelogs/fragments/8087-removed-redundant-unicode-prefixes.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
17e275bc0b
commit
226207522e
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- "revbitspss lookup plugin - removed a redundant unicode prefix. The prefix was not necessary for Python 3 and has been cleaned up to streamline the code (https://github.com/ansible-collections/community.general/pull/8087)."
|
|
@ -100,7 +100,7 @@ class LookupModule(LookupBase):
|
||||||
result = []
|
result = []
|
||||||
for term in terms:
|
for term in terms:
|
||||||
try:
|
try:
|
||||||
display.vvv(u"Secret Server lookup of Secret with ID %s" % term)
|
display.vvv("Secret Server lookup of Secret with ID %s" % term)
|
||||||
result.append({term: secret_server.get_pam_secret(term)})
|
result.append({term: secret_server.get_pam_secret(term)})
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
raise AnsibleError("Secret Server lookup failure: %s" % error.message)
|
raise AnsibleError("Secret Server lookup failure: %s" % error.message)
|
||||||
|
|
Loading…
Reference in a new issue