Skip to content

Conversation

@rlafuente
Copy link

The python-gitlab docs indicate that:

  • the private key should be specified in the gitlab.Gitlab constructor (gitlab.Gitlab.set_token is deprecated)
  • gitlab.Gitlab.token_auth is deprecated, should now be gitlab.Gitlab.auth

This pull request deals with both of these issues.

(BTW, the set_url call on line 33 seems to be redundant since the URL is specified when creating the gitlab.Gitlab instance, but I didn't have the time to test.)

The python-gitlab [docs](http://python-gitlab.readthedocs.io/en/stable/api-usage.html#gitlab-gitlab-class) indicate that:

* the private key should be specified in the gitlab.Gitlab constructor (`gitlab.Gitlab.set_token` is deprecated)
* `gitlab.Gitlab.token_auth` is deprecated, should now be `gitlab.Gitlab.auth`

This pull request deals with both of these issues.
@rlafuente
Copy link
Author

rlafuente commented Jul 6, 2017

Oof, I just noticed this was discussed in issue 280, completely missed the SSL part. Probably best to disregard this.


def __init__(self, *args, **kwarg):
self.gl = gitlab.Gitlab(self.url_ro)
self.gl = gitlab.Gitlab(self.url_ro, private_token=self._privatekey)
Copy link
Owner

Choose a reason for hiding this comment

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

at this time the privatekey in self._privatekey is not known :-/

@guyzmo
Copy link
Owner

guyzmo commented Jul 6, 2017

thank you a lot for having done a PR ♥, but I'll have to reject this PR cf #280 and my comment! ☹

@guyzmo guyzmo closed this Jul 6, 2017
@rlafuente rlafuente deleted the patch-2 branch August 1, 2017 16:45
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