mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
hashi_vault: fix multiple spaces in params (#51524)
Fixes param parsing in hashi_vault Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
196e82ec8a
commit
32fce43311
2 changed files with 4 additions and 3 deletions
|
@ -252,11 +252,11 @@ class HashiVault:
|
|||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
def run(self, terms, variables, **kwargs):
|
||||
def run(self, terms, variables=None, **kwargs):
|
||||
if not HAS_HVAC:
|
||||
raise AnsibleError("Please pip install hvac to use the hashi_vault lookup module.")
|
||||
|
||||
vault_args = terms[0].split(' ')
|
||||
vault_args = terms[0].split()
|
||||
vault_dict = {}
|
||||
ret = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue