From 98a5b76e62d29d98bb784ef68dc1814ed5e2c794 Mon Sep 17 00:00:00 2001 From: gnought <1684105+gnought@users.noreply.github.com> Date: Mon, 26 Aug 2024 03:09:36 +0800 Subject: [PATCH] lint fix --- builder/common/step_iam_instance_profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/common/step_iam_instance_profile.go b/builder/common/step_iam_instance_profile.go index 7f0480dd..558f8a76 100644 --- a/builder/common/step_iam_instance_profile.go +++ b/builder/common/step_iam_instance_profile.go @@ -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), })