Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed Aug 25, 2024
1 parent 3563a72 commit 98a5b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/common/step_iam_instance_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (s *StepIamInstanceProfile) Cleanup(state multistep.StateBag) {
ui.Say("Detaching temporary role from instance profile...")

if s.SSMAgentEnabled {
iamsvc.DetachRolePolicy(&iam.DetachRolePolicyInput{
_, _ = iamsvc.DetachRolePolicy(&iam.DetachRolePolicyInput{
PolicyArn: aws.String(fmt.Sprintf("arn:%s:%s", AwsPartition(s.IsRestricted), AmazonSSMManagedInstanceCorePolicyArnPart)),
RoleName: aws.String(s.createdRoleName),
})
Expand Down

0 comments on commit 98a5b76

Please sign in to comment.