https://codereview.appspot.com/7149043/diff/4001/cmd/jujud/main.go#newcode22
cmd/jujud/main.go:22: jujud.Register(&StaterCommand{})
Either this needs a *stater.Config (-1), or the command itself needs to
set one up itself (+1); ISTM that it doesn't, and the tests poke all
that info in directly. Did I miss something?
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ main.go
File cmd/jujud/main.go (right):
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ main.go# newcode22 main.go: 22: jujud.Register( &StaterCommand{ })
cmd/jujud/
Either this needs a *stater.Config (-1), or the command itself needs to
set one up itself (+1); ISTM that it doesn't, and the tests poke all
that info in directly. Did I miss something?
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ stater. go
File cmd/jujud/stater.go (right):
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ stater. go#newcode12 stater. go:12: *stater.Config
cmd/jujud/
Why embed a (nil) pointer when you could just embed directly...
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ stater. go#newcode22 stater. go:22: }
cmd/jujud/
...initialize the fields here...
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ stater. go#newcode27 stater. go:27: sr := stater. NewStater( s.Config)
cmd/jujud/
...and pass &s.Config here?
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ stater_ test.go stater_ test.go (left):
File cmd/jujud/
https:/ /codereview. appspot. com/7149043/ diff/4001/ cmd/jujud/ stater_ test.go# oldcode16 stater_ test.go: 16: ctx := &cmd.Context{
cmd/jujud/
There are a lot of these scattered through the codebase, but maybe it's
not worth factoring them into one place. Thoughts?
https:/ /codereview. appspot. com/7149043/ diff/4001/ environs/ cloudinit/ cloudinit. go cloudinit/ cloudinit. go (left):
File environs/
https:/ /codereview. appspot. com/7149043/ diff/4001/ environs/ cloudinit/ cloudinit. go#oldcode135 cloudinit/ cloudinit. go:135: if err := addMongoToBoot(c, cfg);
environs/
err != nil {
I don't think this change is justified yet -- we don't pass any of the
necessary information in. (Does this actually run correctly? I don't see
how it can...)
https:/ /codereview. appspot. com/7149043/