Fix
This commit is contained in:
parent
3413fc5c46
commit
db96c5c9ae
|
@ -153,6 +153,11 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
|
||||||
c.SecretKey = c.Token
|
c.SecretKey = c.Token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.Region != "" {
|
||||||
|
warnings = append(warnings, "region is deprecated in favor of zone")
|
||||||
|
c.Zone = c.Region
|
||||||
|
}
|
||||||
|
|
||||||
if c.AccessKey == "" {
|
if c.AccessKey == "" {
|
||||||
if profile.AccessKey != nil {
|
if profile.AccessKey != nil {
|
||||||
c.AccessKey = *profile.AccessKey
|
c.AccessKey = *profile.AccessKey
|
||||||
|
|
Loading…
Reference in New Issue