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

Issue 6493055: state: changed environ config to be config.Config (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by TheMue
Modified:
11 years, 8 months ago
Reviewers:
mp+121910
Visibility:
Public.

Description

state: changed environ config to be config.Config state.EnvironConfig() and the according watcher now return environs/config.Config. Additionally the new function state.SetEnvironConfig() replaces the current configuration. Depending code - mostly tests - has been changed. https://code.launchpad.net/~themue/juju-core/go-state-change-environ-config/+merge/121910 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 43

Patch Set 2 : state: changed environ config to be config.Config #

Patch Set 3 : state: changed environ config to be config.Config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -100 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/jujutest/livetests.go View 1 1 chunk +0 lines, -11 lines 0 comments Download
M juju/conn.go View 1 2 chunks +1 line, -14 lines 0 comments Download
M juju/conn_test.go View 1 2 chunks +7 lines, -10 lines 0 comments Download
M state/state.go View 1 2 chunks +18 lines, -4 lines 0 comments Download
M state/state_test.go View 1 2 2 chunks +44 lines, -24 lines 0 comments Download
M state/watcher.go View 1 2 chunks +52 lines, -0 lines 0 comments Download
M worker/firewaller/firewaller.go View 1 4 chunks +3 lines, -5 lines 0 comments Download
M worker/firewaller/firewaller_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M worker/provisioner/provisioner.go View 1 3 chunks +2 lines, -6 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 4 chunks +21 lines, -24 lines 0 comments Download

Messages

Total messages: 5
TheMue
Please take a look.
11 years, 8 months ago (2012-08-29 17:35:49 UTC) #1
niemeyer
https://codereview.appspot.com/6493055/diff/1/environs/jujutest/livetests.go File environs/jujutest/livetests.go (right): https://codereview.appspot.com/6493055/diff/1/environs/jujutest/livetests.go#newcode169 environs/jujutest/livetests.go:169: cfgAttrs := cfg.AllAttrs() This logic is bogus. We don't ...
11 years, 8 months ago (2012-08-29 19:53:49 UTC) #2
TheMue
Please take a look. https://codereview.appspot.com/6493055/diff/1/environs/jujutest/livetests.go File environs/jujutest/livetests.go (right): https://codereview.appspot.com/6493055/diff/1/environs/jujutest/livetests.go#newcode169 environs/jujutest/livetests.go:169: cfgAttrs := cfg.AllAttrs() On 2012/08/29 ...
11 years, 8 months ago (2012-08-30 13:21:51 UTC) #3
niemeyer
LGTM, thanks. https://codereview.appspot.com/6493055/diff/1/worker/provisioner/provisioner_test.go File worker/provisioner/provisioner_test.go (right): https://codereview.appspot.com/6493055/diff/1/worker/provisioner/provisioner_test.go#newcode166 worker/provisioner/provisioner_test.go:166: // Twiddle with the environment configuration. On ...
11 years, 8 months ago (2012-08-30 14:36:57 UTC) #4
TheMue
11 years, 8 months ago (2012-08-30 14:59:35 UTC) #5
*** Submitted:

state: changed environ config to be config.Config

state.EnvironConfig() and the according watcher now
return environs/config.Config. Additionally the new
function state.SetEnvironConfig() replaces the current
configuration. Depending code - mostly tests - has 
been changed.

R=niemeyer
CC=
https://codereview.appspot.com/6493055
Sign in to reply to this message.

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