diff --git a/builder/hyperv/common/step_create_vm.go b/builder/hyperv/common/step_create_vm.go index 611b637b9..255eef558 100644 --- a/builder/hyperv/common/step_create_vm.go +++ b/builder/hyperv/common/step_create_vm.go @@ -32,8 +32,6 @@ type StepCreateVM struct { AdditionalDiskSize []uint DifferencingDisk bool MacAddress string - SkipExport bool - OutputDir string FixedVHD bool } @@ -59,11 +57,6 @@ func (s *StepCreateVM) Run(_ context.Context, state multistep.StateBag) multiste vhdPath := state.Get("packerVhdTempDir").(string) - // inline vhd path if export is skipped - if s.SkipExport { - vhdPath = filepath.Join(s.OutputDir, "Virtual Hard Disks") - } - // convert the MB to bytes ramSize := int64(s.RamSize * 1024 * 1024) diskSize := int64(s.DiskSize * 1024 * 1024) diff --git a/builder/hyperv/iso/builder.go b/builder/hyperv/iso/builder.go index 154161a83..78425dc33 100644 --- a/builder/hyperv/iso/builder.go +++ b/builder/hyperv/iso/builder.go @@ -399,8 +399,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe EnableVirtualizationExtensions: b.config.EnableVirtualizationExtensions, AdditionalDiskSize: b.config.AdditionalDiskSize, DifferencingDisk: b.config.DifferencingDisk, - SkipExport: b.config.SkipExport, - OutputDir: b.config.OutputDir, MacAddress: b.config.MacAddress, FixedVHD: b.config.FixedVHD, },