Skip to content

add tuning params to tune_secret_backend method #215

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

Merged
merged 1 commit into from
Jul 13, 2018
Merged

add tuning params to tune_secret_backend method #215

merged 1 commit into from
Jul 13, 2018

Conversation

bbayszczak
Copy link

Add all supported tuning parameters to tune_secret_backend method the same way than tune_auth_backend method

@jeffwecan
Copy link
Member

Looks reasonable, thanks! Just need to clear up these python 2.7 flake8 violations and then we can get this merged:

py27-flake8 runtests: PYTHONHASHSEED='891218107'
py27-flake8 runtests: commands[0] | flake8
./hvac/v1/init.py:325:27: E128 continuation line under-indented for visual indent
./hvac/v1/init.py:326:27: E128 continuation line under-indented for visual indent
ERROR: InvocationError for command '/home/travis/build/ianunruh/hvac/.tox/py27-flake8/bin/flake8' (exited with code 1)

@jeffwecan jeffwecan self-requested a review July 9, 2018 10:38
@bbayszczak
Copy link
Author

My bad, should be ok now !

if locals().get(optional_parameter) is not None:
params[optional_parameter] = locals().get(optional_parameter)
return self._post('/v1/sys/mounts/{0}/tune'.format(mount_point),
json=params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super tiny thing, but could you move this json=params) bit of the call to the previous line (unless there is some compelling reason to include the line break)? Aside from that things look ready to merge.

.gitignore Outdated
@@ -1,4 +1,6 @@
.DS_Store
.python-version
.idea
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh and I'd rather leave this sort of .gitignore addition out of this repository. While I totally use pycharm, there isn't any reason to assume what IDE / editor contributors may be using. For gitignore entries unique to your development environment, I recommend simply using a "global" gitignore file instead: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore

Would you mind backing out these changes?

Add all supported tuning parameters to tune_secret_backend method the same way than tune_auth_backend method
Copy link
Member

@jeffwecan jeffwecan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 Thanks again @bbayszczak!

@jeffwecan jeffwecan merged commit 93e8cae into hvac:master Jul 13, 2018
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 this pull request may close these issues.

2 participants