1
0
Fork 0
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:
Markus Häll 2018-05-08 07:54:25 +02:00 committed by René Moser
parent 3c35dd4f7f
commit 58f9676d4b

View file

@ -115,7 +115,7 @@ class HashiVault:
if s is None:
raise AnsibleError("No secret specified for hashi_vault lookup")
s_f = s.split(':')
s_f = s.rsplit(':', 1)
self.secret = s_f[0]
if len(s_f) >= 2:
self.secret_field = s_f[1]