Update config.go

This commit is contained in:
Adrien Delorme 2020-03-16 15:12:13 +01:00
parent e1c84806cc
commit 9a74ce60d5
1 changed files with 7 additions and 0 deletions

View File

@ -529,6 +529,13 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
provideDefaultValues(c)
setRuntimeValues(c)
setUserNamePassword(c)
// copy singular blocks
for _, kv := range c.AzureTag {
v := kv.Value
c.AzureTags[kv.Key] = &v
}
err = c.ClientConfig.SetDefaultValues()
if err != nil {
return nil, err