Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapters list function #551

Closed
Tim1000V opened this issue Jan 9, 2020 · 2 comments · Fixed by #689
Closed

Adapters list function #551

Tim1000V opened this issue Jan 9, 2020 · 2 comments · Fixed by #689

Comments

@Tim1000V
Copy link

Tim1000V commented Jan 9, 2020

Hi,

I tried to use secrets.kv.v2.list_secrets wich use adapters.list function. But this function fails with the following error:

hvac.exceptions.InvalidPath: None

If I understand your code it calls session.request from requests module with 'list' method.
I'm a little bit confused by this because first of all I wasn't aware of such method for HTTP protocol, and if I turn on the debugger in my web browser, the method used is 'get'.

Regards

@Tim1000V
Copy link
Author

Tim1000V commented Jan 9, 2020

Looking further into vault web API you may want to change your code to:
return self.request('get', url, params={'list': 'true'}, **kwargs)

@mikehmbn
Copy link

@Tim1000V I opened the PR #643 which fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants