pull/10181/head
Rémy Léone 6 years ago
parent 3413fc5c46
commit db96c5c9ae

@ -153,6 +153,11 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
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 profile.AccessKey != nil {
c.AccessKey = *profile.AccessKey

Loading…
Cancel
Save