mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 12:32:59 +00:00
feat(vm): remove deprecated vga.enabled
(#1533)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
parent
831207b0e3
commit
f4ee6291cc
@ -26,7 +26,7 @@ const (
|
|||||||
func TestAccResourceLinuxVLAN(t *testing.T) {
|
func TestAccResourceLinuxVLAN(t *testing.T) {
|
||||||
te := test.InitEnvironment(t)
|
te := test.InitEnvironment(t)
|
||||||
|
|
||||||
iface := "ens18"
|
iface := "enp1s0"
|
||||||
vlan1 := gofakeit.Number(10, 4094)
|
vlan1 := gofakeit.Number(10, 4094)
|
||||||
customName := fmt.Sprintf("iface_%s", gofakeit.Word())
|
customName := fmt.Sprintf("iface_%s", gofakeit.Word())
|
||||||
vlan2 := gofakeit.Number(10, 4094)
|
vlan2 := gofakeit.Number(10, 4094)
|
||||||
|
@ -271,7 +271,6 @@ const (
|
|||||||
mkHostUSBDeviceUSB3 = "usb3"
|
mkHostUSBDeviceUSB3 = "usb3"
|
||||||
mkVGA = "vga"
|
mkVGA = "vga"
|
||||||
mkVGAClipboard = "clipboard"
|
mkVGAClipboard = "clipboard"
|
||||||
mkVGAEnabled = "enabled"
|
|
||||||
mkVGAMemory = "memory"
|
mkVGAMemory = "memory"
|
||||||
mkVGAType = "type"
|
mkVGAType = "type"
|
||||||
mkVMID = "vm_id"
|
mkVMID = "vm_id"
|
||||||
@ -1409,13 +1408,6 @@ func VM() *schema.Resource {
|
|||||||
"vnc",
|
"vnc",
|
||||||
}, true)),
|
}, true)),
|
||||||
},
|
},
|
||||||
mkVGAEnabled: {
|
|
||||||
Type: schema.TypeBool,
|
|
||||||
Deprecated: "The `enabled` attribute is deprecated and will be removed in a future release. " +
|
|
||||||
"Use type `none` instead.",
|
|
||||||
Description: "Whether to enable the VGA device",
|
|
||||||
Optional: true,
|
|
||||||
},
|
|
||||||
mkVGAMemory: {
|
mkVGAMemory: {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Description: "The VGA memory in megabytes (4-512 MB)",
|
Description: "The VGA memory in megabytes (4-512 MB)",
|
||||||
|
@ -387,15 +387,13 @@ func TestVMSchema(t *testing.T) {
|
|||||||
vgaSchema := test.AssertNestedSchemaExistence(t, s, mkVGA)
|
vgaSchema := test.AssertNestedSchemaExistence(t, s, mkVGA)
|
||||||
|
|
||||||
test.AssertOptionalArguments(t, vgaSchema, []string{
|
test.AssertOptionalArguments(t, vgaSchema, []string{
|
||||||
mkVGAEnabled,
|
|
||||||
mkVGAMemory,
|
mkVGAMemory,
|
||||||
mkVGAType,
|
mkVGAType,
|
||||||
})
|
})
|
||||||
|
|
||||||
test.AssertValueTypes(t, vgaSchema, map[string]schema.ValueType{
|
test.AssertValueTypes(t, vgaSchema, map[string]schema.ValueType{
|
||||||
mkVGAEnabled: schema.TypeBool,
|
mkVGAMemory: schema.TypeInt,
|
||||||
mkVGAMemory: schema.TypeInt,
|
mkVGAType: schema.TypeString,
|
||||||
mkVGAType: schema.TypeString,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user