Skip to content

Commit

Permalink
fix inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiaop committed Dec 26, 2024
1 parent 2491a00 commit a9039e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions akp/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"fmt"
"strconv"
"strings"

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
Expand Down Expand Up @@ -574,8 +575,8 @@ func toExtensionsAPIModel(entries basetypes.ListValue) []*v1alpha1.ArgoCDExtensi
var extensions []*v1alpha1.ArgoCDExtensionInstallEntry
for _, entry := range entries.Elements() {
obj := entry.(basetypes.ObjectValue)
id := obj.Attributes()["id"].String()
version := obj.Attributes()["version"].String()
id := strings.Trim(obj.Attributes()["id"].String(), `"`)
version := strings.Trim(obj.Attributes()["version"].String(), `"`)
extensions = append(extensions, &v1alpha1.ArgoCDExtensionInstallEntry{
Id: id,
Version: version,
Expand Down

0 comments on commit a9039e6

Please sign in to comment.