Github user sjcorbett commented on a diff in the pull request:
https://github.com/apache/brooklyn-client/pull/42#discussion_r111932687
--- Diff: cli/net/net.go ---
@@ -121,15 +121,15 @@ func (net *Network) SendRequestGetStatusCode(req
*http.Request) ([]byte, int, er
client := net.makeClient()
resp, err := client.Do(req)
if err != nil {
- return nil, 0, err
+ return nil, resp.StatusCode, err
--- End diff --
Is `resp` a valid reference when `err` is not nil?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---