0
0
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:
Pavel Boldyrev 2024-09-11 18:20:29 -04:00 committed by GitHub
parent 831207b0e3
commit f4ee6291cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 13 deletions

View File

@ -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)

View File

@ -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)",

View File

@ -387,13 +387,11 @@ 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,
})