Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3642)

Issue 6632049: various: set passwords in state at bootstrap time.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by rog
Modified:
11 years, 6 months ago
Reviewers:
mp+128752
Visibility:
Public.

Description

various: set passwords in state at bootstrap time. https://code.launchpad.net/~rogpeppe/juju-core/113-use-passwords/+merge/128752 Requires: https://code.launchpad.net/~rogpeppe/juju-core/114-testing-logged-in-session/+merge/128718 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : various: set passwords in state at bootstrap time. #

Patch Set 3 : various: set passwords in state at bootstrap time. #

Total comments: 17

Patch Set 4 : various: set passwords in state at bootstrap time. #

Patch Set 5 : various: set passwords in state at bootstrap time. #

Patch Set 6 : various: set passwords in state at bootstrap time. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -19 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M environs/ec2/ec2.go View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M environs/ec2/live_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M environs/interface.go View 1 2 3 1 chunk +9 lines, -5 lines 0 comments Download
M juju/conn.go View 1 2 3 2 chunks +16 lines, -1 line 0 comments Download
M juju/conn_test.go View 2 chunks +46 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M worker/firewaller/firewaller_test.go View 2 chunks +2 lines, -9 lines 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 6 months ago (2012-10-09 16:46:13 UTC) #1
niemeyer
Very nice. LGTM, with simple stuff. https://codereview.appspot.com/6632049/diff/5001/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6632049/diff/5001/environs/dummy/environs.go#newcode404 environs/dummy/environs.go:404: return fmt.Errorf("cannot initialize ...
11 years, 6 months ago (2012-10-09 22:35:45 UTC) #2
rog
Please take a look. https://codereview.appspot.com/6632049/diff/5001/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6632049/diff/5001/environs/dummy/environs.go#newcode404 environs/dummy/environs.go:404: return fmt.Errorf("cannot initialize state: %v", ...
11 years, 6 months ago (2012-10-11 10:51:13 UTC) #3
rog
11 years, 6 months ago (2012-10-11 11:00:22 UTC) #4
*** Submitted:

various: set passwords in state at bootstrap time.

R=niemeyer
CC=
https://codereview.appspot.com/6632049

https://codereview.appspot.com/6632049/diff/5001/environs/dummy/environs.go
File environs/dummy/environs.go (right):

https://codereview.appspot.com/6632049/diff/5001/environs/dummy/environs.go#n...
environs/dummy/environs.go:404: return fmt.Errorf("cannot initialize state: %v",
err)
On 2012/10/11 10:51:13, rog wrote:
> On 2012/10/09 22:35:45, niemeyer wrote:
> > This error message should be within Initialize, as usual for the state
> package.
> 
> If I do that, then Initialize and Open won't be able to return a bare
> state.ErrUnauthorized. I could change that error to be an error type that
> includes another error if you like. Or Initialize could be different and
include
> the prefix, where Open doesn't.

I've reverted to panicing as before to get this CL submitted.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b