mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 18:42:58 +00:00
fix: missing reference to standalone terraform plugin and duplicate output names in example
This commit is contained in:
parent
550ab62a7a
commit
0fd8d3dae7
@ -2,6 +2,6 @@ data "proxmox_virtual_environment_cluster_alias" "example" {
|
||||
name = "example"
|
||||
}
|
||||
|
||||
output "proxmox_virtual_environment_cluster_alias_example_cidr" {
|
||||
output "data_proxmox_virtual_environment_cluster_alias_example_cidr" {
|
||||
value = proxmox_virtual_environment_cluster_alias.example.cidr
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ data "proxmox_virtual_environment_cluster_aliases" "example" {
|
||||
depends_on = ["proxmox_virtual_environment_cluster_alias.example"]
|
||||
}
|
||||
|
||||
output "proxmox_virtual_environment_cluster_aliases" {
|
||||
output "data_proxmox_virtual_environment_cluster_aliases" {
|
||||
value = "${map(
|
||||
"alias_ids", data.proxmox_virtual_environment_cluster_aliases.example.alias_ids,
|
||||
)}"
|
||||
|
@ -5,7 +5,7 @@
|
||||
package proxmoxtf
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -14,7 +14,6 @@ const (
|
||||
mkDataSourceVirtualEnvironmentClusterAliasName = "name"
|
||||
mkDataSourceVirtualEnvironmentClusterAliasCIDR = "cidr"
|
||||
mkDataSourceVirtualEnvironmentClusterAliasComment = "comment"
|
||||
|
||||
)
|
||||
|
||||
func dataSourceVirtualEnvironmentClusterAlias() *schema.Resource {
|
||||
@ -35,7 +34,6 @@ func dataSourceVirtualEnvironmentClusterAlias() *schema.Resource {
|
||||
Description: "Alias comment",
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
},
|
||||
Read: dataSourceVirtualEnvironmentAliasRead,
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ package proxmoxtf
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
// TestDataSourceVirtualEnvironmentAliasInstantiation tests whether the DataSourceVirtualEnvironmentAlias instance can be instantiated.
|
||||
|
@ -5,7 +5,7 @@
|
||||
package proxmoxtf
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,7 +7,7 @@ package proxmoxtf
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
// TestDataSourceVirtualEnvironmentAliasesInstantiation tests whether the DataSourceVirtualEnvironmentAliases instance can be instantiated.
|
||||
|
@ -5,9 +5,10 @@
|
||||
package proxmoxtf
|
||||
|
||||
import (
|
||||
"github.com/danitso/terraform-provider-proxmox/proxmox"
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"strings"
|
||||
|
||||
"github.com/danitso/terraform-provider-proxmox/proxmox"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -143,7 +144,6 @@ func resourceVirtualEnvironmentClusterAliasUpdate(d *schema.ResourceData, m inte
|
||||
return resourceVirtualEnvironmentClusterAliasRead(d, m)
|
||||
}
|
||||
|
||||
|
||||
func resourceVirtualEnvironmentClusterAliasDelete(d *schema.ResourceData, m interface{}) error {
|
||||
config := m.(providerConfiguration)
|
||||
veClient, err := config.GetVEClient()
|
||||
@ -168,17 +168,3 @@ func resourceVirtualEnvironmentClusterAliasDelete(d *schema.ResourceData, m inte
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ package proxmoxtf
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
// TestResourceVirtualEnvironmentAliasInstantiation tests whether the ResourceVirtualEnvironmentAlias instance can be instantiated.
|
||||
|
@ -5,9 +5,10 @@
|
||||
package proxmoxtf
|
||||
|
||||
import (
|
||||
"github.com/danitso/terraform-provider-proxmox/proxmox"
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"strings"
|
||||
|
||||
"github.com/danitso/terraform-provider-proxmox/proxmox"
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -99,7 +100,6 @@ func resourceVirtualEnvironmentClusterIPSetCreate(d *schema.ResourceData, m inte
|
||||
noMatch := IPSetMap[mkResourceVirtualEnvironmentClusterIPSetCIDRNoMatch].(bool)
|
||||
comment := IPSetMap[mkResourceVirtualEnvironmentClusterIPSetCIDRComment].(string)
|
||||
|
||||
|
||||
IPSetObject.Comment = comment
|
||||
IPSetObject.CIDR = cidr
|
||||
|
||||
@ -108,7 +108,6 @@ func resourceVirtualEnvironmentClusterIPSetCreate(d *schema.ResourceData, m inte
|
||||
IPSetObject.NoMatch = &noMatchBool
|
||||
}
|
||||
|
||||
|
||||
IPSetsArray[i] = IPSetObject
|
||||
}
|
||||
|
||||
@ -167,7 +166,6 @@ func resourceVirtualEnvironmentClusterIPSetRead(d *schema.ResourceData, m interf
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
IPSet, err := veClient.GetListIPSetContent(name)
|
||||
|
||||
if err != nil {
|
||||
@ -215,7 +213,6 @@ func resourceVirtualEnvironmentClusterIPSetUpdate(d *schema.ResourceData, m inte
|
||||
return resourceVirtualEnvironmentClusterIPSetRead(d, m)
|
||||
}
|
||||
|
||||
|
||||
func resourceVirtualEnvironmentClusterIPSetDelete(d *schema.ResourceData, m interface{}) error {
|
||||
config := m.(providerConfiguration)
|
||||
veClient, err := config.GetVEClient()
|
||||
@ -257,17 +254,3 @@ func resourceVirtualEnvironmentClusterIPSetDelete(d *schema.ResourceData, m inte
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -5,8 +5,9 @@
|
||||
package proxmoxtf
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
|
||||
)
|
||||
|
||||
// TestResourceVirtualEnvironmentIPSetInstantiation tests whether the resourceVirtualEnvironmentClusterIPSet
|
||||
|
Loading…
Reference in New Issue
Block a user