Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "^.secrets.baseline$",
"lines": null
},
"generated_at": "2022-11-03T20:16:27Z",
"generated_at": "2022-11-04T17:15:32Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down
20 changes: 10 additions & 10 deletions examples/test_user_management_v1_examples.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# (C) Copyright IBM Corp. 2021.
# (C) Copyright IBM Corp. 2021, 2022.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -175,23 +175,23 @@ def test_list_users_example(self):
"""
list_users request example
"""
assert account_id is not None

try:

print('\nlist_users() result:')
# begin-list_users

user_list = user_management_service.list_users(
all_results = []
pager = UsersPager(
client=user_management_service,
account_id=account_id,
state='ACTIVE',
limit=100,
).get_result()
)
while pager.has_next():
next_page = pager.get_next()
assert next_page is not None
all_results.extend(next_page)

print(json.dumps(user_list, indent=2))
print(json.dumps(all_results, indent=2))

# end-list_users

except ApiException as e:
pytest.fail(str(e))

Expand Down
Loading