From 58f9676d4b261f50b1efd6938857157aee9203cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20H=C3=A4ll?= Date: Tue, 8 May 2018 07:54:25 +0200 Subject: [PATCH] hashi_vault: fix for : in secret name (#39820) --- lib/ansible/plugins/lookup/hashi_vault.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/hashi_vault.py b/lib/ansible/plugins/lookup/hashi_vault.py index d91170e21f..b9f2004eb8 100644 --- a/lib/ansible/plugins/lookup/hashi_vault.py +++ b/lib/ansible/plugins/lookup/hashi_vault.py @@ -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]