From 9ee75bc41c312a7cb6107bc03dbba6eafefebe10 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 29 May 2020 09:45:36 -0700 Subject: [PATCH] add disk_size, disk_thin_provisioned, and disk_eagerly_scrub to the DeprecatedOptions field. --- fix/fixer_vsphere_network_storage.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fix/fixer_vsphere_network_storage.go b/fix/fixer_vsphere_network_storage.go index cfc252887..ff29ec520 100644 --- a/fix/fixer_vsphere_network_storage.go +++ b/fix/fixer_vsphere_network_storage.go @@ -4,12 +4,14 @@ import ( "github.com/mitchellh/mapstructure" ) -// FixerVSphereNetworkDisk changes vsphere-iso network and networkCard fields into a network adapter and -// changes the disk_size, disk_thin_provisioned, and disk_eagerly_scrub into a storage adapter +// FixerVSphereNetworkDisk changes vsphere-iso network and networkCard fields +// into a network adapter and changes the disk_size, disk_thin_provisioned, and +// disk_eagerly_scrub into a storage adapter type FixerVSphereNetworkDisk struct{} 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) {