Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
Signed-off-by: Dainius Serplis <[email protected]>
  • Loading branch information
Didainius committed Jun 19, 2024
1 parent 25ae051 commit ad60c04
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
17 changes: 4 additions & 13 deletions vcd/resource_vcd_solution_add_on_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ package vcd
import (
"testing"

"github.com/davecgh/go-spew/spew"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
)

func TestAccSolutionAddonInstanceAndPublishing(t *testing.T) {
Expand Down Expand Up @@ -178,13 +176,13 @@ resource "vcd_solution_add_on" "dse14" {
addon_path = "{{.AddonIsoPath}}"
trust_certificate = true
depends_on = [ vcd_solution_landing_zone.slz ]
depends_on = [vcd_solution_landing_zone.slz]
}
resource "vcd_solution_add_on_instance" "dse14" {
add_on_id = vcd_solution_add_on.dse14.id
accept_eula = true
name = "{{.TestName}}"
add_on_id = vcd_solution_add_on.dse14.id
accept_eula = true
name = "{{.TestName}}"
input = {
delete-previous-uiplugin-versions = true
Expand Down Expand Up @@ -226,10 +224,3 @@ resource "vcd_solution_add_on_instance_publish" "public" {
publish_to_all_tenants = true
}
`

func stateDumper() resource.TestCheckFunc {
return func(s *terraform.State) error {
spew.Dump(s)
return nil
}
}
14 changes: 7 additions & 7 deletions website/docs/r/solution_add_on_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Provides a resource to manage Solution Add-Ons instances in Cloud Director.

```hcl
resource "vcd_solution_add_on_instance" "dse14" {
add_on_id = vcd_solution_add_on.dse14.id
accept_eula = true
name = "MyDseInstance"
add_on_id = vcd_solution_add_on.dse14.id
accept_eula = true
name = "MyDseInstance"
input = {
delete-previous-uiplugin-versions = true
}
input = {
delete-previous-uiplugin-versions = true
}
delete_input = {
force-delete = true
Expand All @@ -37,7 +37,7 @@ resource "vcd_solution_add_on" "dse14" {
addon_path = "vmware-vcd-ds-1.4.0-23376809.iso"
trust_certificate = true
depends_on = [ vcd_solution_landing_zone.slz ]
depends_on = [vcd_solution_landing_zone.slz]
}
```

Expand Down
7 changes: 4 additions & 3 deletions website/docs/r/solution_add_on_instance_publish.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ resource "vcd_solution_add_on" "dse14" {
}
resource "vcd_solution_add_on_instance" "dse14" {
add_on_id = vcd_solution_add_on.dse14.id
accept_eula = true
name = "MyDseInstanceName"
add_on_id = vcd_solution_add_on.dse14.id
accept_eula = true
name = "MyDseInstanceName"
input = {
input-delete-previous-uiplugin-versions = false
}
Expand Down

0 comments on commit ad60c04

Please sign in to comment.