You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by ge...@apache.org on 2017/05/23 14:51:56 UTC

[1/2] brooklyn-client git commit: Delete requrest now only fail is an unsuccessful code is returned

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 <gr...@cloudsoftcorp.com>
Authored: Tue May 23 15:47:17 2017 +0100
Committer: graeme.miller <gr...@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


[2/2] brooklyn-client git commit: Closes #52

Posted by ge...@apache.org.
Closes #52

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/41edfec7
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/41edfec7
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/41edfec7

Branch: refs/heads/master
Commit: 41edfec78a867130684f8deb5f1490f839fb7f3b
Parents: 5fefa5d a094624
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Authored: Tue May 23 15:51:44 2017 +0100
Committer: Geoff Macartney <ge...@cloudsoftcorp.com>
Committed: Tue May 23 15:51:44 2017 +0100

----------------------------------------------------------------------
 cli/net/net.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------