Skip to content

Improve ps name parsing - #8505

Merged
vieux merged 3 commits into
moby:masterfrom
crosbymichael:ps-name
Oct 11, 2014
Merged

vieux merged 3 commits into
moby:masterfrom
crosbymichael:ps-name

Conversation

@crosbymichael

Copy link
Copy Markdown
Contributor

Replaces #8489

My commit cleans up the name parsing logic in ps. For more context about the original issue see the linked PR that this replaces.

Docker-DCO-1.1-Signed-off-by: Brice Jaglin <[email protected]> (github: bjaglin)
Docker-DCO-1.1-Signed-off-by: Brice Jaglin <[email protected]> (github: bjaglin)
Comment thread integration-cli/docker_cli_ps_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I still think this is going to panic if for some reason a container isn't running and the # of lines is less

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@crosbymichael I agree with @jfrazelle

@jessfraz

Copy link
Copy Markdown
Contributor

but ya LGTM other than that

@crosbymichael

Copy link
Copy Markdown
Contributor Author

@jfrazelle if fixed the test by removing it. With the cli string parsing the test would be too flaky and is not robust.

@jessfraz

Copy link
Copy Markdown
Contributor

nice

@vieux

vieux commented Oct 10, 2014

Copy link
Copy Markdown
Contributor

LGTM

@bjaglin

bjaglin commented Oct 10, 2014

Copy link
Copy Markdown

Thanks! Following up the bullet I tried to raise in my PR, but more related to the older original change about a more compact output: does it really make sense to keep a plural NAMES for the header in the default, truncated view?

@vieux

vieux commented Oct 10, 2014

Copy link
Copy Markdown
Contributor

👍 for making it NAME

@crosbymichael

Copy link
Copy Markdown
Contributor Author

Lets keep it NAMES. Should need to swap a header depending on the length of a list since NAMES means one or more

vieux added a commit that referenced this pull request Oct 11, 2014
@vieux
vieux merged commit 246ec5d into moby:master Oct 11, 2014
@crosbymichael
crosbymichael deleted the ps-name branch October 11, 2014 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants