builder/amazon: prefer token in config [GH-1544]
This commit is contained in:
parent
1fa95d7153
commit
4406c20af1
|
@ -16,6 +16,7 @@ IMPROVEMENTS:
|
||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
* core: Fix loading plugins from pwd. [GH-1521]
|
* core: Fix loading plugins from pwd. [GH-1521]
|
||||||
|
* builder/amazon: Prefer token in config if given. [GH-1544]
|
||||||
* builder/virtualbox: Can read VirtualBox version on FreeBSD. [GH-1570]
|
* builder/virtualbox: Can read VirtualBox version on FreeBSD. [GH-1570]
|
||||||
* builder/virtualbox: More robust reading of guest additions URL. [GH-1509]
|
* builder/virtualbox: More robust reading of guest additions URL. [GH-1509]
|
||||||
* builder/vmware: Always remove floppies/drives. [GH-1504]
|
* builder/vmware: Always remove floppies/drives. [GH-1504]
|
||||||
|
|
|
@ -26,7 +26,7 @@ func (c *AccessConfig) Auth() (aws.Auth, error) {
|
||||||
c.SecretKey = auth.SecretKey
|
c.SecretKey = auth.SecretKey
|
||||||
c.Token = auth.Token
|
c.Token = auth.Token
|
||||||
}
|
}
|
||||||
if auth.Token == "" && c.Token != "" {
|
if c.Token != "" {
|
||||||
auth.Token = c.Token
|
auth.Token = c.Token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue