Fix check for errors
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3d3afa0a7c
commit
f7e1763aa4
|
@ -152,7 +152,7 @@ abra_hetzner() {
|
||||||
|
|
||||||
ip=$(echo "$response" | $JQ -r ".server .public_net .ipv4 .ip")
|
ip=$(echo "$response" | $JQ -r ".server .public_net .ipv4 .ip")
|
||||||
|
|
||||||
if [[ -n "$ip" ]]; then
|
if [[ "$ip" == "null" ]]; then
|
||||||
error_msg=$(echo "$response" | jq -r ".error .message")
|
error_msg=$(echo "$response" | jq -r ".error .message")
|
||||||
echo "Oops, something went wrong. Hetzner Cloud API responded with: $error_msg"
|
echo "Oops, something went wrong. Hetzner Cloud API responded with: $error_msg"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue