Skip to content
Snippets Groups Projects
Commit 3ee3aa63 authored by ale's avatar ale
Browse files

Fix deprecation warnings on list() calls

parent fa925502
Branches
No related tags found
No related merge requests found
Pipeline #59299 passed
......@@ -14,10 +14,9 @@ def split_project_branch(project_with_branch):
def list_projects(gl, search_pattern):
projects = gl.projects.list(
all=True,
search=search_pattern,
search_namespaces=True,
as_list=False,
iterator=True,
simple=True,
archived=False,
)
......@@ -29,7 +28,7 @@ def get_branches(gl, project_names):
for path_with_namespace in project_names:
p = gl.projects.get(path_with_namespace)
try:
branches = p.branches.list()
branches = p.branches.list(iterator=True)
except Exception as e:
logging.error('error getting branches for %s: %s',
path_with_namespace, e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment