combine => false for provider commands

asked 2014-04-25 04:58:13 -0500

t0m gravatar image

Is there any easy way to ask a provider's command to not merge stdout/stderr

specifically: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider.rb#L273

I need combine => false, as I have a command that spews stuff I don't want to STDERR, and this gets mixed in with STDOUT and confuses my parsing of the output.

I can't see a way to do that without subclassing CommandDefiner and writing my own self.has_command equivalent.

edit retag flag offensive close merge delete

Comments

Sounds like just the right approach.

ffrank gravatar imageffrank ( 2014-04-26 10:02:46 -0500 )edit

So the answer is 'no'? ;)

t0m gravatar imaget0m ( 2014-04-28 10:20:48 -0500 )edit

Yes, looking at the same code you did, I arrived at the same conclusion. You might want to try in #puppet-dev and see if someone more knowledgeable speaks up, best chances are probably around 9-10AM PST.

ffrank gravatar imageffrank ( 2014-04-29 06:32:35 -0500 )edit