mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
hashi_vault: fix for : in secret name (#39820)
This commit is contained in:
parent
3c35dd4f7f
commit
58f9676d4b
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class HashiVault:
|
||||||
if s is None:
|
if s is None:
|
||||||
raise AnsibleError("No secret specified for hashi_vault lookup")
|
raise AnsibleError("No secret specified for hashi_vault lookup")
|
||||||
|
|
||||||
s_f = s.split(':')
|
s_f = s.rsplit(':', 1)
|
||||||
self.secret = s_f[0]
|
self.secret = s_f[0]
|
||||||
if len(s_f) >= 2:
|
if len(s_f) >= 2:
|
||||||
self.secret_field = s_f[1]
|
self.secret_field = s_f[1]
|
||||||
|
|
Loading…
Reference in a new issue