Skip to content

Commit

Permalink
Fixes panic in sweeper
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Sep 27, 2023
1 parent 9d2c2ae commit 5c3ae2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/service/ssoadmin/sweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 5c3ae2b

Please sign in to comment.