Merge lp:~dave-cheney/juju-core/go-cmd-juju-status-plus-plus into lp:~juju/juju-core/trunk
Status: | Rejected |
---|---|
Rejected by: | Dave Cheney |
Proposed branch: | lp:~dave-cheney/juju-core/go-cmd-juju-status-plus-plus |
Merge into: | lp:~juju/juju-core/trunk |
Prerequisite: | lp:~dave-cheney/juju-core/go-cmd-status-machine-versions |
Diff against target: |
291 lines (+180/-34) 2 files modified
cmd/juju/status.go (+84/-34) cmd/juju/status_test.go (+96/-0) |
To merge this branch: | bzr merge lp:~dave-cheney/juju-core/go-cmd-juju-status-plus-plus |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
The Go Language Gophers | Pending | ||
Review via email: mp+117100@code.launchpad.net |
Description of the change
cmd/juju: status: gather unit information
Add basic support for units, and some cleanups.
Unmerged revisions
- 351. By Dave Cheney
-
merge from trunk
- 350. By Dave Cheney
-
cleanup
- 349. By Dave Cheney
-
added units
- 348. By Dave Cheney
-
added error checking
- 347. By Roger Peppe
-
container: add ToolsDir method
This allows the machine agent to copy tools into the correct directory
for a unit.R=niemeyer
CC=
https://codereview. appspot. com/6441059 - 346. By William Reade
-
add new methods to RelationUnit
Endpoint is required to construct JUJU_RELATION for the unit agent
Relation is also required to construct JUJU_RELATION_ID for the unit agent
ReadSettings will be used by the unit agent to read settings for departed
units, and occasionally to populate cold settings caches.R=niemeyer
CC=
https://codereview. appspot. com/6440050 - 345. By Roger Peppe
-
state: embed agentVersion into Unit
R=niemeyer
CC=
https://codereview. appspot. com/6449050 - 344. By Roger Peppe
-
state: add an agentVersion type and embed it into Machine.
R=niemeyer
CC=
https://codereview. appspot. com/6441053 - 343. By Roger Peppe
-
state: factor out getConfigString and setConfigString
This code was repeated in quite a few places with minor (and
IMHO mostly unjustified) variations. We're about to add more
calls (version and proposed-version), which hopefully should
justify this even more.R=niemeyer
CC=
https://codereview. appspot. com/6442051 - 342. By Roger Peppe
-
state: move RelationScope type to charm.
Also make the schema error for OneOf a little
more useful.R=niemeyer
CC=
https://codereview. appspot. com/6449043
LGTM
https:/ /codereview. appspot. com/6452056/ diff/2001/ cmd/juju/ status. go
File cmd/juju/status.go (right):
https:/ /codereview. appspot. com/6452056/ diff/2001/ cmd/juju/ status. go#newcode216 status. go:216: // TODO(dfc) we could make this nicer, ie
cmd/juju/
machine/0
I'd do "m-0", but unfortunately it's a bit late. :-(
https:/ /codereview. appspot. com/6452056/ diff/2001/ cmd/juju/ status. go#newcode225 status. go:225: AgentVersion() (version.Version, error)
cmd/juju/
Same comment regarding winning the race.
https:/ /codereview. appspot. com/6452056/ diff/2001/ cmd/juju/ status. go#newcode264 status. go:264: func chkError(m map[string] interface{ }, err interface{ } { checkError/
cmd/juju/
error) map[string]
s/chkError/
https:/ /codereview. appspot. com/6452056/