Skip to content

Commit

Permalink
Change hashivault_unseal keys from dict to list
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeirbv committed Jan 18, 2022
1 parent 0dc369f commit a605a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/hashivault_unseal.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

def main():
argspec = hashivault_argspec()
argspec['keys'] = dict(required=True, type='str', no_log=True)
argspec['keys'] = dict(required=True, type='list', no_log=True)
module = hashivault_init(argspec)
result = hashivault_unseal(module.params)
if result.get('failed'):
Expand All @@ -43,7 +43,7 @@ def hashivault_unseal(params):
keys = params.get('keys')
client = hashivault_client(params)
if client.sys.is_sealed():
return {'status': client.sys.submit_unseal_keys(keys.split()), 'changed': True}
return {'status': client.sys.submit_unseal_keys(keys), 'changed': True}
else:
return {'changed': False}

Expand Down

0 comments on commit a605a94

Please sign in to comment.