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
8af85df8
Commit
8af85df8
authored
Nov 02, 2014
by
Vasiliy Tolstov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add error code for failed auth
Signed-off-by:
Vasiliy Tolstov
<
v.tolstov@selfip.ru
>
parent
a5dc41a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
builder/digitalocean/api_v2.go
builder/digitalocean/api_v2.go
+1
-1
No files found.
builder/digitalocean/api_v2.go
View file @
8af85df8
...
@@ -330,7 +330,7 @@ func NewRequestV2(d DigitalOceanClientV2, path string, method string, req interf
...
@@ -330,7 +330,7 @@ func NewRequestV2(d DigitalOceanClientV2, path string, method string, req interf
resp
.
StatusCode
,
body
))
resp
.
StatusCode
,
body
))
}
}
switch
resp
.
StatusCode
{
switch
resp
.
StatusCode
{
case
403
,
429
,
422
,
404
,
503
,
500
:
case
403
,
4
01
,
4
29
,
422
,
404
,
503
,
500
:
return
errors
.
New
(
fmt
.
Sprintf
(
"digitalocean request error: %+v"
,
res
))
return
errors
.
New
(
fmt
.
Sprintf
(
"digitalocean request error: %+v"
,
res
))
}
}
return
nil
return
nil
...
...
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