From 90d4bcdbe81ce2debeca67e18a4d1c175f76fe53 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 2 Sep 2014 11:16:39 -0700 Subject: [PATCH] builder/digitalocean: region supports vars [GH-1452] --- CHANGELOG.md | 1 + builder/digitalocean/builder.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cad724715..9d17f7d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/builder/digitalocean/builder.go b/builder/digitalocean/builder.go index 282681636..73a72252d 100644 --- a/builder/digitalocean/builder.go +++ b/builder/digitalocean/builder.go @@ -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,