builder/digitalocean: region supports vars [GH-1452]

This commit is contained in:
Mitchell Hashimoto 2014-09-02 11:16:39 -07:00
parent ae276fd833
commit 90d4bcdbe8
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ IMPROVEMENTS:
* builder/amazon-instance: EBS AMIs can be used as a source. [GH-1453]
* builder/digitalocean: Can set API URL endpoint. [GH-1448]
* builder/digitalocean: Region supports variables. [GH-1452]
* builder/parallels/all Path to tools ISO is calculated automatically. [GH-1455]
* builder/qemu: Can specify "none" acceleration type. [GH-1395]
* builder/qemu: Can specify "tcg" acceleration type. [GH-1395]

View File

@ -158,6 +158,9 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
templates := map[string]*string{
"region": &b.config.Region,
"size": &b.config.Size,
"image": &b.config.Image,
"client_id": &b.config.ClientID,
"api_key": &b.config.APIKey,
"api_url": &b.config.APIURL,