[Bug] users/list api call returns 500 entries and DSL does not loop through the next offset of 500 if more than 500 users present in command calm update cache #230
Labels
bug
Something isn't working
Describe the bug
The users/list api call returns 500 and DSL does not loop through the next offset of 500 if more than 500 users present.
Branch/Container
master
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All users should be included in the update cache command.
Findings/Troubleshooting Done
Issue may be in the code here where the user api is called but there is no logic for more than 500 users.
calm-dsl/calm/dsl/db/table_config.py
Line 1197 in 884be6b
Line 1200
client = get_api_client()
Obj = get_resource_api("users", client.connection)
res, err = Obj.list({"length": 1000})
Screenshots
If applicable, add screenshots to help explain your problem.
** System Configuration:**
Additional context
Temporary fix in code at line 1195 of calm/dsl/db/table_config.py is working.
The text was updated successfully, but these errors were encountered: