Skip to content

Conversation

PierreF
Copy link
Contributor

@PierreF PierreF commented Sep 25, 2015

Docker remote API allow to use custom option to ps for endpoint "top" (ps_args). Unfortunately docker-py does not allow to specify ps_args.

This pull request fix this issue by adding an optional ps_args argument

Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
@shin-
Copy link
Contributor

shin- commented Sep 25, 2015

Thanks!

LGTM - as a bonus, adding a small test for that feature would be nice.

Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
@PierreF
Copy link
Contributor Author

PierreF commented Sep 28, 2015

Added test.
Test test using the fake API does not check returned value. I don't know how to do that (response that change depending on params).

Anyway, integration test does check the output.

@shin- shin- added this to the 1.5.0 milestone Sep 28, 2015
@shin-
Copy link
Contributor

shin- commented Sep 28, 2015

Cool! LGTM 👍

@dnephin
Copy link
Contributor

dnephin commented Sep 28, 2015

LGTM

shin- added a commit that referenced this pull request Sep 28, 2015
Allow to specify ps_args when listing processes
@shin- shin- merged commit 7884ab9 into docker:master Sep 28, 2015
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.

4 participants