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

Issue 12005048: Use a map to store machine environment in config.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by thumper
Modified:
10 years, 9 months ago
Reviewers:
jtv.canonical, dave, wallyworld, mp+177707
Visibility:
Public.

Description

Use a map to store machine environment in config. The MachineConfig now uses a map to store the environment for the machine agent. https://code.launchpad.net/~thumper/juju-core/machine-agent-environment/+merge/177707 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use a map to store machine environment in config. #

Patch Set 3 : Use a map to store machine environment in config. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -75 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 3 chunks +6 lines, -5 lines 0 comments Download
M cmd/juju/deploy.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M cmd/juju/environmentcommand.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M cmd/juju/environmentcommand_test.go View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M cmd/juju/main_test.go View 1 2 chunks +10 lines, -7 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M cmd/jujud/upgradevalidation.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M environs/azure/customdata_test.go View 1 chunk +0 lines, -1 line 0 comments Download
M environs/cloudinit.go View 1 2 chunks +5 lines, -1 line 0 comments Download
M environs/cloudinit/cloudinit.go View 3 chunks +4 lines, -6 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 6 chunks +24 lines, -23 lines 0 comments Download
M environs/cloudinit_test.go View 1 3 chunks +11 lines, -10 lines 0 comments Download
M environs/local/environ.go View 1 2 chunks +11 lines, -7 lines 0 comments Download
M environs/local/storage/worker.go View 1 3 chunks +5 lines, -4 lines 0 comments Download
A juju/osenv/package_test.go View 1 1 chunk +14 lines, -0 lines 0 comments Download
A juju/osenv/vars.go View 1 1 chunk +16 lines, -0 lines 0 comments Download
A juju/osenv/vars_test.go View 1 1 chunk +20 lines, -0 lines 0 comments Download
M upstart/service.go View 2 chunks +2 lines, -4 lines 0 comments Download
M worker/deployer/simple.go View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 9
thumper
Please take a look.
10 years, 9 months ago (2013-07-30 22:33:52 UTC) #1
wallyworld
LGTM with the cloudinit/cloudinit fix https://codereview.appspot.com/12005048/diff/1/environs/cloudinit.go File environs/cloudinit.go (right): https://codereview.appspot.com/12005048/diff/1/environs/cloudinit.go#newcode75 environs/cloudinit.go:75: mcfg.MachineEnvironment["JUJU_PROVIDER_TYPE"] = cfg.Type() JUJU_PROVIDER_TYPE ...
10 years, 9 months ago (2013-07-31 03:32:27 UTC) #2
thumper
https://codereview.appspot.com/12005048/diff/1/environs/cloudinit.go File environs/cloudinit.go (right): https://codereview.appspot.com/12005048/diff/1/environs/cloudinit.go#newcode75 environs/cloudinit.go:75: mcfg.MachineEnvironment["JUJU_PROVIDER_TYPE"] = cfg.Type() On 2013/07/31 03:32:27, wallyworld wrote: > ...
10 years, 9 months ago (2013-07-31 04:17:48 UTC) #3
thumper
Please take a look.
10 years, 9 months ago (2013-07-31 05:14:16 UTC) #4
thumper
On 2013/07/31 05:14:16, thumper wrote: > Please take a look. I started updating some of ...
10 years, 9 months ago (2013-07-31 05:14:49 UTC) #5
thumper
Please take a look.
10 years, 9 months ago (2013-07-31 05:55:04 UTC) #6
jtv.canonical
LGTM, except you have conflicts. Silly ones, from the looks of it: mostly imports, but ...
10 years, 9 months ago (2013-07-31 06:26:34 UTC) #7
dave_cheney.net
LGTM.
10 years, 9 months ago (2013-07-31 06:41:36 UTC) #8
thumper
10 years, 9 months ago (2013-07-31 21:46:02 UTC) #9
On 2013/07/31 06:26:34, jtv.canonical wrote:
> LGTM, except you have conflicts.  Silly ones, from the looks of it: mostly
> imports, but also a case where a function gained or lost an error return.
> 
> I was expecting to see changes to more providers' tests.  Don't those need to
> set the provider type in various places as well?

It is handled by the generic environs function FinishMachineConfig.
Sign in to reply to this message.

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