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

Can only connect to one server at a time #16

Open
slide opened this issue Oct 3, 2014 · 1 comment
Open

Can only connect to one server at a time #16

slide opened this issue Oct 3, 2014 · 1 comment

Comments

@slide
Copy link

slide commented Oct 3, 2014

I was trying to use the library to migrate some information from an older server to a new server, so I did

old = GitLab(old_url, old_token)
new = GitLab(new_url, new_token)

for u in old.users():
    print u.name

This showed me users from the new server instead of the old server.

@samrocketman
Copy link
Contributor

This appears to be a bug in how class attributes are defined statically in the class rather than an instance. setattr seems affect the base url across classes would be my guess. It would be better if _GitLabAPI was instantiated rather than depending on the definition itself.

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

2 participants