Skip to content

Commit

Permalink
[aws_account_map[mp_ref["account_id"]] for mp_ref in managed_policy_r…
Browse files Browse the repository at this point in the history
…efs] -> list(aws_account_map.values())
  • Loading branch information
Will-NOQ committed Jul 18, 2023
1 parent a37cd33 commit 78e1ec3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ async def create_templated_managed_policy( # noqa: C901
AwsIamManagedPolicyTemplate,
template_params,
ManagedPolicyProperties(**template_properties),
[aws_account_map[mp_ref["account_id"]] for mp_ref in managed_policy_refs],
list(aws_account_map.values()),
)


Expand Down
2 changes: 1 addition & 1 deletion iambic/plugins/v0_1_0/aws/iam/role/template_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ async def create_templated_role( # noqa: C901
AwsIamRoleTemplate,
role_template_params,
RoleProperties(**role_template_properties),
[aws_account_map[role_ref["account_id"]] for role_ref in role_refs],
list(aws_account_map.values()),
)
except Exception as e:
log_params = {
Expand Down
2 changes: 1 addition & 1 deletion iambic/plugins/v0_1_0/aws/iam/user/template_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ async def create_templated_user( # noqa: C901
AwsIamUserTemplate,
user_template_params,
UserProperties(**user_template_properties),
[aws_account_map[user_ref["account_id"]] for user_ref in user_refs],
list(aws_account_map.values()),
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ async def create_templated_permission_set( # noqa: C901
AwsIdentityCenterPermissionSetTemplate,
template_params,
PermissionSetProperties(**template_properties),
[aws_account_map[ps_ref["account_id"]] for ps_ref in permission_set_refs],
list(aws_account_map.values()),
)


Expand Down

0 comments on commit 78e1ec3

Please sign in to comment.