Commit f4c756a2 authored by Vasiliy Tolstov's avatar Vasiliy Tolstov

fix copy/paste error

Signed-off-by: default avatarVasiliy Tolstov <v.tolstov@selfip.ru>
parent 6c6f3c24
...@@ -104,7 +104,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { ...@@ -104,7 +104,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
if b.config.APIToken == "" { if b.config.APIToken == "" {
// Default to environment variable for api_token, if it exists // Default to environment variable for api_token, if it exists
b.config.APIURL = os.Getenv("DIGITALOCEAN_API_TOKEN") b.config.APIToken = os.Getenv("DIGITALOCEAN_API_TOKEN")
} }
if b.config.Region == "" { if b.config.Region == "" {
...@@ -196,7 +196,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { ...@@ -196,7 +196,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
if b.config.APIKey == "" { if b.config.APIKey == "" {
errs = packer.MultiErrorAppend( errs = packer.MultiErrorAppend(
errs, errors.New("an api_key for v1 auth or api_token for v2 auth must be specified")) errs, errors.New("a api_key for v1 auth or api_token for v2 auth must be specified"))
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment