From 5c3ae2b07ecf2cc1474e17d3ec4062d8492df9ba Mon Sep 17 00:00:00 2001 From: Graham Davison Date: Wed, 27 Sep 2023 11:08:06 -0700 Subject: [PATCH] Fixes panic in sweeper --- internal/service/ssoadmin/sweep.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/service/ssoadmin/sweep.go b/internal/service/ssoadmin/sweep.go index 389a02cf95e..26236b2fbd0 100644 --- a/internal/service/ssoadmin/sweep.go +++ b/internal/service/ssoadmin/sweep.go @@ -14,7 +14,6 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ssoadmin" "github.com/hashicorp/go-multierror" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-provider-aws/internal/sweep" "github.com/hashicorp/terraform-provider-aws/internal/sweep/sdk" @@ -165,7 +164,7 @@ func sweepPermissionSets(region string) error { return err } - instanceArn := dsData.Get("arns").(*schema.Set).List()[0].(string) + instanceArn := dsData.Get("arns").([]interface{})[0].(string) input := &ssoadmin.ListPermissionSetsInput{ InstanceArn: aws.String(instanceArn),