Fixed a bug in get_account_authorization_details for attached managed policies.

Fixed a bug in the XML template for `get_account_authorization_details` where attached managed policies
were empty strings.
This commit is contained in:
Mike Grima 2019-02-07 17:32:31 -08:00
commit 94672799cf
2 changed files with 14 additions and 3 deletions

View file

@ -1560,10 +1560,10 @@ GET_ACCOUNT_AUTHORIZATION_DETAILS_TEMPLATE = """<GetAccountAuthorizationDetailsR
{% endfor %}
</RolePolicyList>
<AttachedManagedPolicies>
{% for policy in role.managed_policies %}
{% for policy_arn in role.managed_policies %}
<member>
<PolicyName>{{ policy.name }}</PolicyName>
<PolicyArn>{{ policy.arn }}</PolicyArn>
<PolicyName>{{ role.managed_policies[policy_arn].name }}</PolicyName>
<PolicyArn>{{ policy_arn }}</PolicyArn>
</member>
{% endfor %}
</AttachedManagedPolicies>