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

Issue 6345071: environ configs are now parsed strictly

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

Description

environ configs are now parsed strictly That is to say, a new Schema.StrictFieldMap type -- which errors on unrecognised keys -- was added, and is now used by the dummy and ec2 environs for config loading. https://code.launchpad.net/~fwereade/juju-core/strict-parse-environ/+merge/113661 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : environ configs are now parsed strictly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -11 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/config_test.go View 2 chunks +7 lines, -1 line 0 comments Download
M environs/dummy/environs.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/ec2/config.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M schema/schema.go View 1 2 chunks +19 lines, -1 line 0 comments Download
M schema/schema_test.go View 2 chunks +27 lines, -7 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 9 months ago (2012-07-05 23:21:37 UTC) #1
dave_cheney.net
On 2012/07/05 23:21:37, fwereade wrote: > Please take a look. LGTM. Thanks.
11 years, 9 months ago (2012-07-06 05:14:35 UTC) #2
niemeyer
LGTM! Thanks! https://codereview.appspot.com/6345071/diff/1/environs/ec2/config.go File environs/ec2/config.go (right): https://codereview.appspot.com/6345071/diff/1/environs/ec2/config.go#newcode33 environs/ec2/config.go:33: "type": schema.Const("ec2"), Hah. https://codereview.appspot.com/6345071/diff/1/schema/schema.go File schema/schema.go (right): ...
11 years, 9 months ago (2012-07-06 10:38:23 UTC) #3
fwereade
11 years, 9 months ago (2012-07-06 12:30:15 UTC) #4
*** Submitted:

environ configs are now parsed strictly

That is to say, a new Schema.StrictFieldMap type -- which errors on
unrecognised keys -- was added, and is now used by the dummy and ec2
environs for config loading.

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

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