-
Notifications
You must be signed in to change notification settings - Fork 26
Show tag values in list --active
#23
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
Conversation
@@ -31,4 +31,61 @@ | |||
expect(Utils.generate_os_hash(host_arg)).to be_empty | |||
end | |||
end | |||
|
|||
describe '#prettyprint_hosts' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some benefit here in specifying the desired output format, but honestly this test is going to be super brittle, so I don't know if it - cost vs benefit wise - is going to be very valuable. Happy to remove it, I just didn't feel like I could submit a patch without a test around the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah....I feel like that's fine for the most part. I'm not too experienced in webmock unit tests checking stdout from puts but I feel like it should be ok? Is it brittle just because the moment someone changes how the prettyprint hosts method works it'll break? or because there's the potential for other things to appear in stdout while running unit tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I agree its probably fine, though brittle for those reasons. Thanks!
@justinstoller thanks! I'll check this out tomorrow. Looks good otherwise, also woo tests! |
Woo! Looks good to me:
If you don't mind, it would be great if you'd squash the commits down like you mentioned! And then I'd be happy to merge :) 👍 |
list --active
list --active
If tags exist this will add them as comma-space separated list of {key}: {value} pairs after the currently listed metadata. If there aren't tags for the vm there should be no change to the output.
I enable travis on my fork and tested out a couple different combinations. You can see my version of this PR here: justinstoller#1 Hopefully that info is helpful?