diff --git a/builder/proxmox/common/config.go b/builder/proxmox/common/config.go index 2491d6b32..f4a7f7801 100644 --- a/builder/proxmox/common/config.go +++ b/builder/proxmox/common/config.go @@ -63,7 +63,7 @@ type Config struct { AdditionalISOFiles []storageConfig `mapstructure:"additional_iso_files"` VMInterface string `mapstructure:"vm_interface"` - Ctx interpolate.Context `mapstructure-to-hcl2:"skip"` + Ctx interpolate.Context `mapstructure-to-hcl2:",skip"` } type storageConfig struct { diff --git a/builder/proxmox/common/config.hcl2spec.go b/builder/proxmox/common/config.hcl2spec.go index 36176030e..2cc292dbd 100644 --- a/builder/proxmox/common/config.hcl2spec.go +++ b/builder/proxmox/common/config.hcl2spec.go @@ -285,6 +285,8 @@ type FlatstorageConfig struct { ISOFile *string `mapstructure:"iso_file" cty:"iso_file" hcl:"iso_file"` ISOStoragePool *string `mapstructure:"iso_storage_pool" cty:"iso_storage_pool" hcl:"iso_storage_pool"` Unmount *bool `mapstructure:"unmount" cty:"unmount" hcl:"unmount"` + ShouldUploadISO *bool `cty:"should_upload_iso" hcl:"should_upload_iso"` + DownloadPathKey *string `cty:"download_path_key" hcl:"download_path_key"` } // FlatMapstructure returns a new FlatstorageConfig. @@ -308,6 +310,8 @@ func (*FlatstorageConfig) HCL2Spec() map[string]hcldec.Spec { "iso_file": &hcldec.AttrSpec{Name: "iso_file", Type: cty.String, Required: false}, "iso_storage_pool": &hcldec.AttrSpec{Name: "iso_storage_pool", Type: cty.String, Required: false}, "unmount": &hcldec.AttrSpec{Name: "unmount", Type: cty.Bool, Required: false}, + "should_upload_iso": &hcldec.AttrSpec{Name: "should_upload_iso", Type: cty.Bool, Required: false}, + "download_path_key": &hcldec.AttrSpec{Name: "download_path_key", Type: cty.String, Required: false}, } return s }