mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 04:22: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) {
|
||||
te := test.InitEnvironment(t)
|
||||
|
||||
iface := "ens18"
|
||||
iface := "enp1s0"
|
||||
vlan1 := gofakeit.Number(10, 4094)
|
||||
customName := fmt.Sprintf("iface_%s", gofakeit.Word())
|
||||
vlan2 := gofakeit.Number(10, 4094)
|
||||
|
@ -271,7 +271,6 @@ const (
|
||||
mkHostUSBDeviceUSB3 = "usb3"
|
||||
mkVGA = "vga"
|
||||
mkVGAClipboard = "clipboard"
|
||||
mkVGAEnabled = "enabled"
|
||||
mkVGAMemory = "memory"
|
||||
mkVGAType = "type"
|
||||
mkVMID = "vm_id"
|
||||
@ -1409,13 +1408,6 @@ func VM() *schema.Resource {
|
||||
"vnc",
|
||||
}, 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: {
|
||||
Type: schema.TypeInt,
|
||||
Description: "The VGA memory in megabytes (4-512 MB)",
|
||||
|
@ -387,15 +387,13 @@ func TestVMSchema(t *testing.T) {
|
||||
vgaSchema := test.AssertNestedSchemaExistence(t, s, mkVGA)
|
||||
|
||||
test.AssertOptionalArguments(t, vgaSchema, []string{
|
||||
mkVGAEnabled,
|
||||
mkVGAMemory,
|
||||
mkVGAType,
|
||||
})
|
||||
|
||||
test.AssertValueTypes(t, vgaSchema, map[string]schema.ValueType{
|
||||
mkVGAEnabled: schema.TypeBool,
|
||||
mkVGAMemory: schema.TypeInt,
|
||||
mkVGAType: schema.TypeString,
|
||||
mkVGAMemory: schema.TypeInt,
|
||||
mkVGAType: schema.TypeString,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user