Skip to content

Commit 5d61dd8

Browse files
author
kadimgh
authored
Switching to gitlab.v4
In order to work with current version of Gitlab (11.x) and python-gitlab (1.5.1) switched from gitlab.v3 to gitlab.v4.
1 parent aeb27ec commit 5d61dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/manage_gitlab_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def needs_transfer(user, groupname, project):
121121
namespace = groupname
122122
else:
123123
namespace = user
124-
if type(project.namespace) == gitlab.v3.objects.Group:
124+
if type(project.namespace) == gitlab.v4.objects.Group:
125125
return project.namespace.name != namespace
126126
else:
127127
return project.namespace['name'] != namespace

0 commit comments

Comments
 (0)