File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,11 @@ core_client = connection.clients.get_core_client()
34
34
35
35
# Get the first page of projects
36
36
get_projects_response = core_client.get_projects()
37
+
37
38
index = 0
38
- while get_projects_response is not None :
39
- for project in get_projects_response.value:
40
- pprint.pprint(" [" + str (index) + " ] " + project.name)
41
- index += 1
42
- if get_projects_response.continuation_token is not None and get_projects_response.continuation_token != " " :
43
- # Get the next page of projects
44
- get_projects_response = core_client.get_projects(continuation_token = get_projects_response.continuation_token)
45
- else :
46
- # All projects have been retrieved
47
- get_projects_response = None
39
+ for project in get_projects_response:
40
+ pprint.pprint(" [" + str (index) + " ] " + project.name)
41
+ index += 1
48
42
```
49
43
50
44
## API documentation
You can’t perform that action at this time.
0 commit comments