From ce3dd0d1ac3fbed3cf671720e273470fb1ccdbc6 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Tue, 23 May 2017 15:37:43 +0200 Subject: Add 'search' attribute to projects.list() projects.search() has been deprecated by Gitlab --- gitlab/objects.py | 1 + 1 file changed, 1 insertion(+) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 98c1a32..0def183 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -2276,6 +2276,7 @@ class ProjectRunnerManager(BaseManager): class Project(GitlabObject): _url = '/projects' _constructorTypes = {'owner': 'User', 'namespace': 'Group'} + optionalListAttrs = ['search'] requiredCreateAttrs = ['name'] optionalCreateAttrs = ['path', 'namespace_id', 'description', 'issues_enabled', 'merge_requests_enabled', -- cgit v1.2.1