add disk_size, disk_thin_provisioned, and disk_eagerly_scrub to the DeprecatedOptions field.

This commit is contained in:
Megan Marsh 2020-05-29 09:45:36 -07:00
parent 865d8f04eb
commit 9ee75bc41c
1 changed files with 5 additions and 3 deletions

View File

@ -4,12 +4,14 @@ import (
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
) )
// FixerVSphereNetworkDisk changes vsphere-iso network and networkCard fields into a network adapter and // FixerVSphereNetworkDisk changes vsphere-iso network and networkCard fields
// changes the disk_size, disk_thin_provisioned, and disk_eagerly_scrub into a storage adapter // into a network adapter and changes the disk_size, disk_thin_provisioned, and
// disk_eagerly_scrub into a storage adapter
type FixerVSphereNetworkDisk struct{} type FixerVSphereNetworkDisk struct{}
func (FixerVSphereNetworkDisk) DeprecatedOptions() []string { func (FixerVSphereNetworkDisk) DeprecatedOptions() []string {
return []string{"network_card", "network", "networkCard"} return []string{"network_card", "network", "networkCard", "disk_size",
"disk_thin_provisioned", "disk_eagerly_scrub"}
} }
func (FixerVSphereNetworkDisk) Fix(input map[string]interface{}) (map[string]interface{}, error) { func (FixerVSphereNetworkDisk) Fix(input map[string]interface{}) (map[string]interface{}, error) {