Repository: brooklyn-client Updated Branches: refs/heads/master 5fefa5d13 -> 41edfec78
Delete requrest now only fail is an unsuccessful code is returned Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/a0946246 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/a0946246 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/a0946246 Branch: refs/heads/master Commit: a094624683dcbf0c0f3ab134c7f80e5fcaaf8909 Parents: 5fefa5d Author: graeme.miller <graeme.mil...@cloudsoftcorp.com> Authored: Tue May 23 15:47:17 2017 +0100 Committer: graeme.miller <graeme.mil...@cloudsoftcorp.com> Committed: Tue May 23 15:47:17 2017 +0100 ---------------------------------------------------------------------- cli/net/net.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/a0946246/cli/net/net.go ---------------------------------------------------------------------- diff --git a/cli/net/net.go b/cli/net/net.go index b6ffb19..da86ffe 100644 --- a/cli/net/net.go +++ b/cli/net/net.go @@ -154,7 +154,7 @@ func (net *Network) SendDeleteRequest(url string) ([]byte, error) { if nil != err { return nil, err } - if code != http.StatusNoContent { + if unsuccessful(code) { return nil, makeSimpleError(code, body) } return body, err