Merge lp://staging/~fwereade/juju-core/cosmetic-status-output into lp://staging/~juju/juju-core/trunk

Proposed by William Reade
Status: Merged
Merged at revision: 1186
Proposed branch: lp://staging/~fwereade/juju-core/cosmetic-status-output
Merge into: lp://staging/~juju/juju-core/trunk
Diff against target: 54 lines (+11/-11)
1 file modified
cmd/juju/status.go (+11/-11)
To merge this branch: bzr merge lp://staging/~fwereade/juju-core/cosmetic-status-output
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+159818@code.staging.launchpad.net

Description of the change

cmd/juju: alphabetise status output fields

https://codereview.appspot.com/8834047/

To post a comment you must log in.
Revision history for this message
William Reade (fwereade) wrote :
Download full text (4.3 KiB)

Reviewers: mp+159818_code.launchpad.net,

Message:
Please take a look.

Description:
cmd/juju: alphabetise status output fields

https://code.launchpad.net/~fwereade/juju-core/cosmetic-status-output/+merge/159818

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/8834047/

Affected files:
   A [revision details]
   M cmd/juju/status.go

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>

Index: cmd/juju/status.go
=== modified file 'cmd/juju/status.go'
--- cmd/juju/status.go 2013-04-18 14:18:36 +0000
+++ cmd/juju/status.go 2013-04-19 12:45:35 +0000
@@ -309,14 +309,14 @@

  type machineStatus struct {
   Err error `json:"-" yaml:",omitempty"`
- Series string `json:"series,omitempty"
yaml:"series,omitempty"`
- InstanceId state.InstanceId `json:"instance-id,omitempty"
yaml:"instance-id,omitempty"`
- DNSName string `json:"dns-name,omitempty"
yaml:"dns-name,omitempty"`
- Life string `json:"life,omitempty"
yaml:"life,omitempty"`
- AgentVersion string `json:"agent-version,omitempty"
yaml:"agent-version,omitempty"`
   AgentState params.Status `json:"agent-state,omitempty"
yaml:"agent-state,omitempty"`
   AgentStateInfo string `json:"agent-state-info,omitempty"
yaml:"agent-state-info,omitempty"`
+ AgentVersion string `json:"agent-version,omitempty"
yaml:"agent-version,omitempty"`
+ DNSName string `json:"dns-name,omitempty"
yaml:"dns-name,omitempty"`
+ InstanceId state.InstanceId `json:"instance-id,omitempty"
yaml:"instance-id,omitempty"`
   InstanceState string `json:"instance-state,omitempty"
yaml:"instance-state,omitempty"`
+ Life string `json:"life,omitempty"
yaml:"life,omitempty"`
+ Series string `json:"series,omitempty"
yaml:"series,omitempty"`
  }

  // A goyaml bug means we can't declare these types
@@ -347,12 +347,12 @@

  type serviceStatus struct {
   Err error `json:"-" yaml:",omitempty"`
- Life string `json:"life,omitempty"
yaml:"life,omitempty"`
   Charm string `json:"charm" yaml:"charm"`
   Exposed bool `json:"exposed" yaml:"exposed"`
- Units map[string]unitStatus `json:"units,omitempty"
yaml:"units,omitempty"`
+ Life string `json:"life,omitempty"
yaml:"life,omitempty"`
   Relations map[string][]string `json:"relations,omitempty"
yaml:"relations,omitempty"`
   SubordinateTo []string `json:"subordinate-to,omitempty"
yaml:"subordinate-to,omitempty"`
+ Units map[string]unitStatus `json:"units,omitempty"
yaml:"units,omitempty"`
  }
  type serviceStatusNoMarshal serviceStatus

@@ -374,12 +374,12 @@

  type unitStatus struct {
   Err error ...

Read more...

Revision history for this message
Roger Peppe (rogpeppe) wrote :

On 2013/04/19 13:02:10, fwereade wrote:
> Please take a look.

LGTM trivial

https://codereview.appspot.com/8834047/

Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Revision history for this message
William Reade (fwereade) wrote :

*** Submitted:

cmd/juju: alphabetise status output fields

R=dimitern
CC=
https://codereview.appspot.com/8834047

https://codereview.appspot.com/8834047/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches