Skip to content

Commit

Permalink
fix: commends on build assign tags
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-wong-edb committed Sep 9, 2024
1 parent c165509 commit a4c3abb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/provider/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

// build tag assign terraform resource as, using api response as input
func buildTFRsrcAssignTagsAs(tfRsrcTagsOut *[]commonTerraform.Tag, apiRespTags []commonApi.Tag) {
*tfRsrcTagsOut = []commonTerraform.Tag{}
for _, v := range apiRespTags {
Expand All @@ -18,6 +19,7 @@ func buildTFRsrcAssignTagsAs(tfRsrcTagsOut *[]commonTerraform.Tag, apiRespTags [
}
}

// build tag assign request using terraform resource as input
func buildAPIReqAssignTags(tfRsrcTags []commonTerraform.Tag) []commonApi.Tag {
tags := []commonApi.Tag{}
for _, tag := range tfRsrcTags {
Expand Down

0 comments on commit a4c3abb

Please sign in to comment.