Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

feat(fleetctl): list machines in consistent/sorted order #473

Merged
merged 1 commit into from
May 22, 2014

Conversation

jonboulle
Copy link
Contributor

I propose sorting by machineid.

@bcwaldon
Copy link
Contributor

sure

@@ -52,8 +52,6 @@ func runListUnits(args []string) (exit int) {

func findAllUnits() (jobs map[string]job.Job, sortable sort.StringSlice, err error) {
jobs = make(map[string]job.Job, 0)
sortable = make(sort.StringSlice, 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we leave this change out of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really feel strongly about this? It makes it consistent with findAllMachines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(by which I mean I feel it is relevant enough to be part of this change)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am always a proponent of making a commit change one thing, and that makes it easier to follow the history. The consistencty that we get between a new method and this existing method isn't a great argument to me, as you could make findAllMachines match what already exists, then change both at once in a secondary commit. I won't block this PR on something this small, but I want you to understand where I'm coming from.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted.

@jonboulle
Copy link
Contributor Author

Added docstrings.

@bcwaldon
Copy link
Contributor

lgtm

jonboulle added a commit that referenced this pull request May 22, 2014
feat(fleetctl): list machines in consistent/sorted order
@jonboulle jonboulle merged commit cb67014 into coreos:master May 22, 2014
@jonboulle jonboulle deleted the 473 branch May 22, 2014 18:45
@bcwaldon bcwaldon added this to the v0.4.0 milestone May 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants