Add mapstructure tag for UserAgent field

Closes: #9676
This commit is contained in:
Wilken Rivera 2020-07-30 16:08:24 -04:00
parent f1a14cf306
commit 980f02ce5d
3 changed files with 4 additions and 2 deletions

View File

@ -67,7 +67,7 @@ type Config struct {
RemoveVolume bool `mapstructure:"remove_volume"`
UserAgent string
UserAgent string `mapstructure:"user_agent"`
ctx interpolate.Context
}

View File

@ -74,7 +74,7 @@ type FlatConfig struct {
Bootscript *string `mapstructure:"bootscript" required:"false" cty:"bootscript" hcl:"bootscript"`
BootType *string `mapstructure:"boottype" required:"false" cty:"boottype" hcl:"boottype"`
RemoveVolume *bool `mapstructure:"remove_volume" cty:"remove_volume" hcl:"remove_volume"`
UserAgent *string `cty:"user_agent" hcl:"user_agent"`
UserAgent *string `mapstructure:"user_agent" cty:"user_agent" hcl:"user_agent"`
}
// FlatMapstructure returns a new FlatConfig.

View File

@ -16,3 +16,5 @@
bootscript, Default bootscript
- `remove_volume` (bool) - Remove Volume
- `user_agent` (string) - User Agent