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

Issue 62400043: Fix lp:1168744 validate config

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by waigani
Modified:
11 years, 10 months ago
Reviewers:
axw, fwereade, mp+205880
Visibility:
Public.

Description

Fix lp:1168744 validate config Add new function to environs, ValidateConfig, which makes a new config by applying config args to oldConfig and validating via environ provider specific validator. https://code.launchpad.net/~waigani/juju-core/validate-environ-config/+merge/205880 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Fix lp:1168744 validate config #

Total comments: 8

Patch Set 3 : Fix lp:1168744 validate config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -28 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/environment.go View 1 2 2 chunks +7 lines, -11 lines 0 comments Download
M cmd/juju/environment_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/config.go View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M state/apiserver/client/client.go View 1 2 1 chunk +4 lines, -15 lines 0 comments Download
M state/apiserver/keymanager/keymanager.go View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 6
waigani
Please take a look.
11 years, 11 months ago (2014-02-12 21:09:58 UTC) #1
waigani
Please take a look.
11 years, 11 months ago (2014-02-12 22:55:30 UTC) #2
axw
https://codereview.appspot.com/62400043/diff/10001/environs/config.go File environs/config.go (right): https://codereview.appspot.com/62400043/diff/10001/environs/config.go#newcode267 environs/config.go:267: func ValidateConfig(oldConfig *config.Config, args map[string]interface{}) (newProviderConfig *config.Config, err error) ...
11 years, 11 months ago (2014-02-13 08:59:41 UTC) #3
fwereade
On 2014/02/13 08:59:41, axw wrote: > https://codereview.appspot.com/62400043/diff/10001/environs/config.go > File environs/config.go (right): > > https://codereview.appspot.com/62400043/diff/10001/environs/config.go#newcode267 > ...
11 years, 11 months ago (2014-02-14 09:32:41 UTC) #4
waigani
Please take a look. https://codereview.appspot.com/62400043/diff/10001/environs/config.go File environs/config.go (right): https://codereview.appspot.com/62400043/diff/10001/environs/config.go#newcode267 environs/config.go:267: func ValidateConfig(oldConfig *config.Config, args map[string]interface{}) ...
11 years, 11 months ago (2014-02-15 20:04:41 UTC) #5
waigani
11 years, 11 months ago (2014-02-15 20:34:27 UTC) #6
https://codereview.appspot.com/62400043/diff/10001/state/apiserver/client/cli...
File state/apiserver/client/client.go (right):

https://codereview.appspot.com/62400043/diff/10001/state/apiserver/client/cli...
state/apiserver/client/client.go:787: //Make new config by applying config args
to oldConfig and validating via environ provider specific validator
On 2014/02/13 08:59:42, axw wrote:
> I don't think this comment is worthwhile. It's just restating what
> ValidateConfig says it does.

Done.

https://codereview.appspot.com/62400043/diff/10001/state/apiserver/keymanager...
File state/apiserver/keymanager/keymanager.go (right):

https://codereview.appspot.com/62400043/diff/10001/state/apiserver/keymanager...
state/apiserver/keymanager/keymanager.go:143: //Make new config by applying
config args to currentConfig and validating via environ provider specific
validator
On 2014/02/13 08:59:42, axw wrote:
> ditto

Done.
Sign in to reply to this message.

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