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

Add API key support to st2client #2712

Merged
merged 2 commits into from
May 26, 2016
Merged

Add API key support to st2client #2712

merged 2 commits into from
May 26, 2016

Conversation

enykeev
Copy link
Member

@enykeev enykeev commented May 25, 2016

As requested in StackStorm/st2-packages#283, the PR adds support for API key to st2client and allows user to store said key in ~/.st2/config.

@@ -37,7 +37,7 @@

class Client(object):
def __init__(self, base_url=None, auth_url=None, api_url=None, api_version=None, cacert=None,
debug=False, token=None):
debug=False, token=None, apikey=None):
Copy link
Member

@Kami Kami May 25, 2016

Choose a reason for hiding this comment

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

For consistency, I think it would be better to call it api_key (that way it's consistent with other variable names).

Copy link
Member Author

Choose a reason for hiding this comment

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

I was under the impression it would be inconsistent with variable name in some other place, but I went and checked and could not find one. So here you go.

@enykeev
Copy link
Member Author

enykeev commented May 26, 2016

@Kami so do I have a green light on that one?

@Kami
Copy link
Member

Kami commented May 26, 2016

LGTM, +1

Please also open a corresponding st2docs PR (I believe there should already be a chapter / section on CLI config somewhere).

enykeev added a commit to StackStorm/st2docs that referenced this pull request May 26, 2016
@enykeev enykeev merged commit c86dc42 into master May 26, 2016
@enykeev enykeev deleted the feature/client_api_key branch May 26, 2016 11:13
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