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

Issue 22210044: cmd/juju: get- and set-environment using the API (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by dimitern
Modified:
10 years, 6 months ago
Reviewers:
mp+194082, fwereade
Visibility:
Public.

Description

cmd/juju: get- and set-environment using the API Implemented EnvironmentGet and EnvironmentSet in the client API and changed the get-environment and set-environment commands to use that instead of connecting to state directly. https://code.launchpad.net/~dimitern/juju-core/200-cli-get-set-environment/+merge/194082 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/juju: get- and set-environment using the API #

Patch Set 3 : cmd/juju: get- and set-environment using the API #

Total comments: 4

Patch Set 4 : cmd/juju: get- and set-environment using the API #

Total comments: 8

Patch Set 5 : cmd/juju: get- and set-environment using the API #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -46 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/environment.go View 1 2 3 2 chunks +22 lines, -46 lines 0 comments Download
M state/api/client.go View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M state/api/params/params.go View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M state/apiserver/client/client.go View 1 2 3 4 2 chunks +48 lines, -0 lines 1 comment Download
M state/apiserver/client/client_test.go View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
M state/apiserver/client/perm_test.go View 1 2 3 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 8
dimitern
Please take a look.
10 years, 6 months ago (2013-11-06 09:14:00 UTC) #1
dimitern
Please take a look.
10 years, 6 months ago (2013-11-06 09:17:59 UTC) #2
fwereade
A couple of thoughts -- and tbh I think I'd be happiest without Key/Keys at ...
10 years, 6 months ago (2013-11-06 09:33:54 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/22210044/diff/40001/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/22210044/diff/40001/state/api/params/params.go#newcode434 state/api/params/params.go:434: Key string On 2013/11/06 09:33:54, ...
10 years, 6 months ago (2013-11-06 10:53:43 UTC) #4
fwereade
On 2013/11/06 10:53:43, dimitern wrote: > The provider is used to validate the new config, ...
10 years, 6 months ago (2013-11-06 12:04:23 UTC) #5
fwereade
LGTM with the below. Discussion encouraged :). https://codereview.appspot.com/22210044/diff/60001/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/22210044/diff/60001/state/api/params/params.go#newcode433 state/api/params/params.go:433: Results map[string]interface{} ...
10 years, 6 months ago (2013-11-06 12:10:38 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/22210044/diff/60001/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/22210044/diff/60001/state/api/params/params.go#newcode433 state/api/params/params.go:433: Results map[string]interface{} On 2013/11/06 12:10:39, ...
10 years, 6 months ago (2013-11-06 14:14:32 UTC) #7
fwereade
10 years, 6 months ago (2013-11-06 14:56:55 UTC) #8
Thanks -- still LGTM :).

https://codereview.appspot.com/22210044/diff/80001/state/apiserver/client/cli...
File state/apiserver/client/client.go (right):

https://codereview.appspot.com/22210044/diff/80001/state/apiserver/client/cli...
state/apiserver/client/client.go:582: return fmt.Errorf("agent-version cannot be
changed")
Explicit agent-version setting *might* be ok so long as it's not a *change*.
Depends on usage I guess -- probably fine to keep it as it is until it bothers
someone.
Sign in to reply to this message.

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