Skip to content

Commit

Permalink
replace utils.String to pointer.To
Browse files Browse the repository at this point in the history
Signed-off-by: ziyeqf <[email protected]>
  • Loading branch information
ziyeqf committed Jul 17, 2023
1 parent 7eab617 commit 7d7a003
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/suppress"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/utils"
)

type IncludedDiskModel struct {
Expand Down Expand Up @@ -1063,10 +1062,10 @@ func expandVMWareReplicatedVMNics(input []NetworkInterfaceModel) []replicationpr
}
if nic.IsPrimary {
vmNic.IsPrimaryNic = strconv.FormatBool(true)
vmNic.IsSelectedForFailover = utils.String("true")
vmNic.IsSelectedForFailover = pointer.To("true")
} else {
vmNic.IsPrimaryNic = strconv.FormatBool(false)
vmNic.IsSelectedForFailover = utils.String("false")
vmNic.IsSelectedForFailover = pointer.To("false")
}
vmNics = append(vmNics, vmNic)
}
Expand Down

0 comments on commit 7d7a003

Please sign in to comment.