Skip to content

Commit

Permalink
Merge pull request hashicorp#33655 from hashicorp/b-sweep-ssoadmin-pe…
Browse files Browse the repository at this point in the history
…rmission-set

sweeper/aws_ssoadmin_permission_set: Fixes panic in sweeper
  • Loading branch information
gdavison authored Sep 29, 2023
2 parents 28610cf + 5c3ae2b commit 2828878
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 2828878

Please sign in to comment.