-
Notifications
You must be signed in to change notification settings - Fork 377
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
client.write() returns 204 #34
Comments
This is expected behavior. If the write failed, then an exception would be thrown due to a non-200 response code. Returning |
What is the point of this then? if response.status_code == 200:
return response.json() |
Only some writes return content. For example, a write to the generic secret backend will return nothing and a It is up to the caller to know if there will be content from the |
In vault 0.4.0 I am getting 204 return codes from client.write() instead of 200.
Because of this check: https://github.com/ianunruh/hvac/blob/master/hvac/v1/__init__.py#L35
None
is returned for both success and failure.The text was updated successfully, but these errors were encountered: