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

How to override "core_api_version"? #119

Open
truebit opened this issue Jan 28, 2019 · 1 comment
Open

How to override "core_api_version"? #119

truebit opened this issue Jan 28, 2019 · 1 comment

Comments

@truebit
Copy link

truebit commented Jan 28, 2019

I'd like to use other core api version like 2.0,
I tried below code, but without luck:

from stashy.client import StashClient
import stashy
StashClient.core_api_version = '2.0'
s= stashy.connect('http://git.example.com', 'admin', 'foobar')
s.admin.groups.url()

s.admin.groups.url() still returns 1.0

@truebit
Copy link
Author

truebit commented Jan 28, 2019

I found the core_api_path is still api/1.0. So workaround is to override core_api_path instead of core_api_version

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

No branches or pull requests

1 participant