https://codereview.appspot.com/10083047/diff/1/state/service.go#newcode729
state/service.go:729: return settings.Map(), nil
i'd be tempted to return settings.core to avoid yet another unnecessary
map copy (or implement Settings.sharedMap which just returns
settings.core,
amounting to the same thing).
perhaps the overhead amounts to nothing in the long run though. <hits
self>.
LGTM
https:/ /codereview. appspot. com/10083047/ diff/1/ juju/conn. go
File juju/conn.go (right):
https:/ /codereview. appspot. com/10083047/ diff/1/ juju/conn. go#newcode219 gSettings( settings) ; err !=
juju/conn.go:219: if err := svc.UpdateConfi
nil {
much nicer to only have one operation here, thanks.
https:/ /codereview. appspot. com/10083047/ diff/1/ state/apiserver /client. go /client. go (right):
File state/apiserver
https:/ /codereview. appspot. com/10083047/ diff/1/ state/apiserver /client. go#newcode70 /client. go:70: changes, err := ).ParseSettings YAML([] byte(p. Config) , p.ServiceName)
state/apiserver
ch.Config(
we should check with the GUI folks that they haven't put in a workaround
for the current behaviour before this branch lands.
https:/ /codereview. appspot. com/10083047/ diff/1/ state/service. go
File state/service.go (left):
https:/ /codereview. appspot. com/10083047/ diff/1/ state/service. go#oldcode777 go:777: func (s *Service) SetConfigYAML( yamlData []byte)
state/service.
error {
it's gone!
https:/ /codereview. appspot. com/10083047/ diff/1/ state/service. go
File state/service.go (right):
https:/ /codereview. appspot. com/10083047/ diff/1/ state/service. go#newcode729 go:729: return settings.Map(), nil
state/service.
i'd be tempted to return settings.core to avoid yet another unnecessary
map copy (or implement Settings.sharedMap which just returns
settings.core,
amounting to the same thing).
perhaps the overhead amounts to nothing in the long run though. <hits
self>.
https:/ /codereview. appspot. com/10083047/ diff/1/ state/statecmd/ get.go get.go (right):
File state/statecmd/
https:/ /codereview. appspot. com/10083047/ diff/1/ state/statecmd/ get.go# newcode52 get.go: 52: info := map[string] interface{ }{
state/statecmd/
this should really be a struct, i think.
https:/ /codereview. appspot. com/10083047/ diff/1/ worker/ uniter/ context_ test.go uniter/ context_ test.go (right):
File worker/
https:/ /codereview. appspot. com/10083047/ diff/1/ worker/ uniter/ context_ test.go# newcode582 uniter/ context_ test.go: 582: })
worker/
c.Assert(err, IsNil)
https:/ /codereview. appspot. com/10083047/