Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
kubernetes-ghost
Commits
b5b7c9e2
Commit
b5b7c9e2
authored
Aug 26, 2020
by
Arie Peterson
🐚
Browse files
Also check for curl failure in driver
parent
f5093250
Changes
1
Hide whitespace changes
Inline
Side-by-side
driver/src/driver.sh
View file @
b5b7c9e2
...
...
@@ -96,7 +96,10 @@ ghostAction() {
else
local
data
=
"{
\"
type
\"
:
\"
$action
\"
,
\"
droplet
\"
:
$vps
}"
fi
response
=
$(
curl
-sS
-X
POST
-H
"Authorization: Bearer
$apiToken
"
"
$url
"
-d
"
$data
"
)
if
!
response
=
$(
curl
-sS
-X
POST
-H
"Authorization: Bearer
$apiToken
"
"
$url
"
-d
"
$data
"
)
then
exitWithFailure
"
$response
"
fi
# Record the complete body from the HTTP response in the log.
debug
"output: "
debug
$(
jq
'.'
<<<
"
$response
"
)
...
...
Write
Preview
Supports
Markdown
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