Skip to content

Commit

Permalink
Update kv_recursive.py
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmullen authored Mar 22, 2024
1 parent 44e3722 commit 7208fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kv_recursive.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def read_secrets_from_list(client, kv_list, kv_version, source_mount):
for i, li in enumerate(kv_list[:]):
k = kv_list[i]
if kv_version == 2:
v = client.secrets.kv.v2.read_secret_version(k, mount_point=source_mount,
v = client.secrets.kv.v2.read_secret_version(k, mount_point=source_mount,
raise_on_deleted_version=True)['data']['data']
elif kv_version == 1:
v = client.secrets.kv.v1.read_secret(k, mount_point=source_mount)['data']
Expand Down Expand Up @@ -125,7 +125,7 @@ def main():
if __name__ == '__main__':

parser = argparse.ArgumentParser(description='Recursively interact with Hashicorp Vault KV mount')
parser.add_argument('action', choices=['copy', 'move', 'delete', 'list', 'read',
parser.add_argument('action', choices=['copy', 'move', 'delete', 'list', 'read',
'count'], default='list', metavar='ACTION')
parser.add_argument('--tls-skip-verify', action='store_false')
parser.add_argument('--source-path', '-s', default='')
Expand Down

0 comments on commit 7208fc5

Please sign in to comment.