Default for Gen 1 VMs
This commit is contained in:
parent
716f19a457
commit
5943881051
|
@ -89,7 +89,7 @@ type Config struct {
|
||||||
// The image to create using this build.
|
// The image to create using this build.
|
||||||
ImageResourceID string `mapstructure:"image_resource_id" required:"true"`
|
ImageResourceID string `mapstructure:"image_resource_id" required:"true"`
|
||||||
// The [Hyper-V generation type](https://docs.microsoft.com/en-us/rest/api/compute/images/createorupdate#hypervgenerationtypes).
|
// The [Hyper-V generation type](https://docs.microsoft.com/en-us/rest/api/compute/images/createorupdate#hypervgenerationtypes).
|
||||||
// Defaults to `V2`.
|
// Defaults to `V1`.
|
||||||
ImageHyperVGeneration string `mapstructure:"image_hyperv_generation"`
|
ImageHyperVGeneration string `mapstructure:"image_hyperv_generation"`
|
||||||
|
|
||||||
ctx interpolate.Context
|
ctx interpolate.Context
|
||||||
|
@ -190,7 +190,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if b.config.ImageHyperVGeneration == "" {
|
if b.config.ImageHyperVGeneration == "" {
|
||||||
b.config.ImageHyperVGeneration = string(compute.V2)
|
b.config.ImageHyperVGeneration = string(compute.V1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// checks, accumulate any errors or warnings
|
// checks, accumulate any errors or warnings
|
||||||
|
|
Loading…
Reference in New Issue