Fixing list entities for policy
This commit is contained in:
parent
e9d8021c86
commit
59deb4d6c0
@ -113,7 +113,7 @@ class IamResponse(BaseResponse):
|
||||
# Options 'User'|'Role'|'Group'|'LocalManagedPolicy'|'AWSManagedPolicy
|
||||
entity = self._get_param('EntityFilter')
|
||||
path_prefix = self._get_param('PathPrefix')
|
||||
policy_usage_filter = self._get_param('PolicyUsageFilter')
|
||||
#policy_usage_filter = self._get_param('PolicyUsageFilter')
|
||||
marker = self._get_param('Marker')
|
||||
max_items = self._get_param('MaxItems')
|
||||
|
||||
@ -167,11 +167,9 @@ class IamResponse(BaseResponse):
|
||||
if p == policy_arn:
|
||||
entity_groups.append(group.name)
|
||||
|
||||
|
||||
template = self.response_template(LIST_ENTITIES_FOR_POLICY_TEMPLATE)
|
||||
return template.render(roles=entity_roles, users=entity_users, groups=entity_groups)
|
||||
|
||||
|
||||
def create_role(self):
|
||||
role_name = self._get_param('RoleName')
|
||||
path = self._get_param('Path')
|
||||
|
Loading…
Reference in New Issue
Block a user