Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix paasta status -vv #325

Merged
merged 2 commits into from
Mar 14, 2016
Merged

Fix paasta status -vv #325

merged 2 commits into from
Mar 14, 2016

Conversation

giuliano108
Copy link
Contributor

PR #295 taught paasta status -v to sort/truncate the list of non running Mesos tasks. It introduced a bug that broke paasta status -vv: the truncated list of tasks was not consistently used throughout the code, leading to an Can only zip same-length lists exception.

b974221 fixes said bug and updates the tests.

01df0ee attempts to remove some duplication in status_mesos_tasks_verbose.

PR #295 teaches `paasta status -v` to sort/truncate the list of non
running Mesos tasks. It introduces the bug fixed by this commit.
:param grey: If True, the list will be made less visually prominent.
:return output: Formatted output (list of output lines).
"""
if not grey:
Copy link
Contributor

Choose a reason for hiding this comment

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

What if the argument was just called color and it default to a noop (lambda?) and the called could pick? not a blocker just an alternative suggestion

Copy link
Contributor

Choose a reason for hiding this comment

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

+1. default could be PaastaColors.white, and then colorize becomes lambda color_func: color_func(x)

@solarkennedy
Copy link
Contributor

ship

@Rob-Johnson
Copy link
Contributor

shipit

giuliano108 added a commit that referenced this pull request Mar 14, 2016
@giuliano108 giuliano108 merged commit 3bf3d1c into master Mar 14, 2016
@giuliano108 giuliano108 self-assigned this Mar 15, 2016
@asottile asottile deleted the fix_paasta_status_vv branch May 31, 2016 21:46
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.

3 participants