Skip to content

Can only connect to one server at a time #16

Description

@slide

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.

Activity

  1. samrocketman commented on Oct 3, 2014

    @samrocketman
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions