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