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

Issue 10441044: uniter/jujuc: added arg --all to config-get (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by mue
Modified:
10 years, 10 months ago
Reviewers:
dpb1, mp+170789, fwereade, rog
Visibility:
Public.

Description

uniter/jujuc: added arg --all to config-get Actually config-get behaves different to pyjuju and writes all configuration keys, even if their value is nil. Now the default behavior is like in pyjuju, empty values are filtered. The additional argument --all (or -a) allows the output of all keys. https://code.launchpad.net/~themue/juju-core/029-config-get-all/+merge/170789 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 14

Patch Set 2 : uniter/jujuc: added arg --all to config-get #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -11 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M worker/uniter/jujuc/config-get.go View 1 5 chunks +22 lines, -1 line 2 comments Download
M worker/uniter/jujuc/config-get_test.go View 1 6 chunks +92 lines, -10 lines 0 comments Download
M worker/uniter/jujuc/util_test.go View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8
mue
Please take a look.
10 years, 10 months ago (2013-06-21 11:22:35 UTC) #1
rog
LGTM with a couple of minor suggestions https://codereview.appspot.com/10441044/diff/1/worker/uniter/jujuc/config-get.go File worker/uniter/jujuc/config-get.go (right): https://codereview.appspot.com/10441044/diff/1/worker/uniter/jujuc/config-get.go#newcode35 worker/uniter/jujuc/config-get.go:35: f.BoolVar(&c.all, "a", ...
10 years, 10 months ago (2013-06-21 12:08:50 UTC) #2
fwereade
Solid code, but a bunch of tweaks that I think would help a lot. https://codereview.appspot.com/10441044/diff/1/worker/uniter/jujuc/config-get.go ...
10 years, 10 months ago (2013-06-21 12:18:31 UTC) #3
mue
Please take a look. https://codereview.appspot.com/10441044/diff/1/worker/uniter/jujuc/config-get.go File worker/uniter/jujuc/config-get.go (left): https://codereview.appspot.com/10441044/diff/1/worker/uniter/jujuc/config-get.go#oldcode40 worker/uniter/jujuc/config-get.go:40: c.Key = args[0] On 2013/06/21 ...
10 years, 10 months ago (2013-06-21 15:19:51 UTC) #4
dpb1
I tested this patch set 2 on trunk with the apache2 module from the charm ...
10 years, 10 months ago (2013-06-24 23:02:47 UTC) #5
mue
On 2013/06/24 23:02:47, dpb1 wrote: > I tested this patch set 2 on trunk with ...
10 years, 10 months ago (2013-06-25 10:27:18 UTC) #6
fwereade
LGTM https://codereview.appspot.com/10441044/diff/8001/worker/uniter/jujuc/config-get.go File worker/uniter/jujuc/config-get.go (right): https://codereview.appspot.com/10441044/diff/8001/worker/uniter/jujuc/config-get.go#newcode27 worker/uniter/jujuc/config-get.go:27: doc := ` When no <key> is supplied, ...
10 years, 10 months ago (2013-06-26 09:07:56 UTC) #7
mue
10 years, 10 months ago (2013-06-26 09:36:02 UTC) #8
https://codereview.appspot.com/10441044/diff/8001/worker/uniter/jujuc/config-...
File worker/uniter/jujuc/config-get.go (right):

https://codereview.appspot.com/10441044/diff/8001/worker/uniter/jujuc/config-...
worker/uniter/jujuc/config-get.go:27: doc := `
On 2013/06/26 09:07:57, fwereade wrote:
> When no <key> is supplied, all keys with values or defaults are printed. If
> --all is set, all known keys are printed; those without defaults or values are
> reported as null. <key> and --all are mutually exclusive.

Done.
Sign in to reply to this message.

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