Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
f4c756a2
Commit
f4c756a2
authored
Oct 03, 2014
by
Vasiliy Tolstov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix copy/paste error
Signed-off-by:
Vasiliy Tolstov
<
v.tolstov@selfip.ru
>
parent
6c6f3c24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
builder/digitalocean/builder.go
builder/digitalocean/builder.go
+2
-2
No files found.
builder/digitalocean/builder.go
View file @
f4c756a2
...
...
@@ -104,7 +104,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
if
b
.
config
.
APIToken
==
""
{
// Default to environment variable for api_token, if it exists
b
.
config
.
API
URL
=
os
.
Getenv
(
"DIGITALOCEAN_API_TOKEN"
)
b
.
config
.
API
Token
=
os
.
Getenv
(
"DIGITALOCEAN_API_TOKEN"
)
}
if
b
.
config
.
Region
==
""
{
...
...
@@ -196,7 +196,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
if
b
.
config
.
APIKey
==
""
{
errs
=
packer
.
MultiErrorAppend
(
errs
,
errors
.
New
(
"a
n
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"
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment