Image name not required attr
This commit is contained in:
parent
32b77f3b80
commit
64cda51bff
|
@ -59,7 +59,7 @@ type Config struct {
|
||||||
|
|
||||||
// The name of the image, which contains 1-63 characters and only
|
// The name of the image, which contains 1-63 characters and only
|
||||||
// supports lowercase English characters, numbers and hyphen.
|
// supports lowercase English characters, numbers and hyphen.
|
||||||
ImageName string `mapstructure:"image_name" required:"true"`
|
ImageName string `mapstructure:"image_name" required:"false"`
|
||||||
// The description of the image.
|
// The description of the image.
|
||||||
ImageDescription string `mapstructure:"image_description" required:"false"`
|
ImageDescription string `mapstructure:"image_description" required:"false"`
|
||||||
// The family name of the imported image.
|
// The family name of the imported image.
|
||||||
|
|
|
@ -23,7 +23,7 @@ type FlatConfig struct {
|
||||||
Bucket *string `mapstructure:"bucket" required:"true" cty:"bucket" hcl:"bucket"`
|
Bucket *string `mapstructure:"bucket" required:"true" cty:"bucket" hcl:"bucket"`
|
||||||
ObjectName *string `mapstructure:"object_name" required:"false" cty:"object_name" hcl:"object_name"`
|
ObjectName *string `mapstructure:"object_name" required:"false" cty:"object_name" hcl:"object_name"`
|
||||||
SkipClean *bool `mapstructure:"skip_clean" required:"false" cty:"skip_clean" hcl:"skip_clean"`
|
SkipClean *bool `mapstructure:"skip_clean" required:"false" cty:"skip_clean" hcl:"skip_clean"`
|
||||||
ImageName *string `mapstructure:"image_name" required:"true" cty:"image_name" hcl:"image_name"`
|
ImageName *string `mapstructure:"image_name" required:"false" cty:"image_name" hcl:"image_name"`
|
||||||
ImageDescription *string `mapstructure:"image_description" required:"false" cty:"image_description" hcl:"image_description"`
|
ImageDescription *string `mapstructure:"image_description" required:"false" cty:"image_description" hcl:"image_description"`
|
||||||
ImageFamily *string `mapstructure:"image_family" required:"false" cty:"image_family" hcl:"image_family"`
|
ImageFamily *string `mapstructure:"image_family" required:"false" cty:"image_family" hcl:"image_family"`
|
||||||
ImageLabels map[string]string `mapstructure:"image_labels" required:"false" cty:"image_labels" hcl:"image_labels"`
|
ImageLabels map[string]string `mapstructure:"image_labels" required:"false" cty:"image_labels" hcl:"image_labels"`
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
after the import process has completed. Possible values are: `true` to
|
after the import process has completed. Possible values are: `true` to
|
||||||
leave it in the bucket, `false` to remove it. (Default: `false`).
|
leave it in the bucket, `false` to remove it. (Default: `false`).
|
||||||
|
|
||||||
|
- `image_name` (string) - The name of the image, which contains 1-63 characters and only
|
||||||
|
supports lowercase English characters, numbers and hyphen.
|
||||||
|
|
||||||
- `image_description` (string) - The description of the image.
|
- `image_description` (string) - The description of the image.
|
||||||
|
|
||||||
- `image_family` (string) - The family name of the imported image.
|
- `image_family` (string) - The family name of the imported image.
|
||||||
|
|
|
@ -8,7 +8,4 @@
|
||||||
|
|
||||||
- `bucket` (string) - The name of the bucket where the qcow2 file will be copied to for import.
|
- `bucket` (string) - The name of the bucket where the qcow2 file will be copied to for import.
|
||||||
This bucket must exist when the post-processor is run.
|
This bucket must exist when the post-processor is run.
|
||||||
|
|
||||||
- `image_name` (string) - The name of the image, which contains 1-63 characters and only
|
|
||||||
supports lowercase English characters, numbers and hyphen.
|
|
||||||
|
|
Loading…
Reference in New Issue