Need to speficy how we are sorting.
This commit is contained in:
parent
38021c6ef5
commit
9101b58934
@ -418,7 +418,7 @@ class IAMBackend(BaseBackend):
|
|||||||
if path_prefix:
|
if path_prefix:
|
||||||
policies = [p for p in policies if p.path.startswith(path_prefix)]
|
policies = [p for p in policies if p.path.startswith(path_prefix)]
|
||||||
|
|
||||||
policies = sorted(policies)
|
policies = sorted(policies, key=lambda policy: policy.name)
|
||||||
start_idx = int(marker) if marker else 0
|
start_idx = int(marker) if marker else 0
|
||||||
|
|
||||||
policies = policies[start_idx:start_idx + max_items]
|
policies = policies[start_idx:start_idx + max_items]
|
||||||
@ -444,7 +444,7 @@ class IAMBackend(BaseBackend):
|
|||||||
if path_prefix:
|
if path_prefix:
|
||||||
policies = [p for p in policies if p.path.startswith(path_prefix)]
|
policies = [p for p in policies if p.path.startswith(path_prefix)]
|
||||||
|
|
||||||
policies = sorted(policies)
|
policies = sorted(policies, key=lambda policy: policy.name)
|
||||||
start_idx = int(marker) if marker else 0
|
start_idx = int(marker) if marker else 0
|
||||||
|
|
||||||
policies = policies[start_idx:start_idx + max_items]
|
policies = policies[start_idx:start_idx + max_items]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user