add macaroon support to csclient.Params #82

Merged
merged 2 commits into from Mar 30, 2016

Conversation

Projects
None yet
3 participants
Contributor

natefinch commented Mar 30, 2016

No description provided.

+ // A non-nil error here will get caught at request time when we try
+ // to parse the URL, and without a valid URL, the macaroons don't matter
+ // anyway.
+ if err == nil {
@natefinch

natefinch Mar 30, 2016

Contributor

I know this is bad. In discussion with Roger, it was decided that it was better to avoid a breaking change at this time (by forcing New to return an error), so we're just swallowing it for now, though as stated in the comment, the failure to parse would mean that requests will inevitably fail with the same parse failure, at which point, the use of macaroons is moot.

Member

jujugui commented Mar 30, 2016

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmrepo/225/
Test PASSed.

Member

jujugui commented Mar 30, 2016

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.jujugui.org:8080//job/charmrepo/226/
Test PASSed.

Contributor

ericsnowcurrently commented Mar 30, 2016

LGTM

Contributor

natefinch commented Mar 30, 2016

:shipit:

Member

jujugui commented Mar 30, 2016

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/charmrepo-merge

@jujugui jujugui merged commit a3aafe2 into juju:v2-unstable Mar 30, 2016

1 check passed

default Merged build finished.
Details

@natefinch natefinch deleted the natefinch:mac-support branch Mar 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment