Merge pull request #473 from mitchellh/do-error-message
builder/digitalocean: error message key is "message" not "error_message"
This commit is contained in:
commit
604fe9ffaa
|
@ -227,7 +227,7 @@ func NewRequest(d DigitalOceanClient, path string, params url.Values) (map[strin
|
||||||
}
|
}
|
||||||
|
|
||||||
if status == "ERROR" {
|
if status == "ERROR" {
|
||||||
status = decodedResponse["error_message"].(string)
|
status = decodedResponse["message"].(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
lastErr = errors.New(fmt.Sprintf("Received error from DigitalOcean (%d): %s",
|
lastErr = errors.New(fmt.Sprintf("Received error from DigitalOcean (%d): %s",
|
||||||
|
|
Loading…
Reference in New Issue