Issue #13246 has been updated by Chris Price.

File test.pp added
Status changed from Unreviewed to Accepted

I've attached a manifest that repro's this.  I tried a few different log levels 
and my experience lines up with what Garrett describes, for both 2.7.9 and 
master... the code that Nick quoted does look like this should work, but for 
some reason it doesn't.
----------------------------------------
Bug #13246: exec's logoutput attribute does not accept valid log levels, and 
should, according to our documentation
https://projects.puppetlabs.com/issues/13246#change-58713

Author: Garrett Honeycutt
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.7.9
Keywords: 
Branch: 


Our doc's read that we support specifying a log level, though the functionality 
is missing.

<http://docs.puppetlabs.com/references/stable/type.html#exec>
<pre>
logoutput

    Whether to log output. Defaults to logging output at the loglevel for the 
exec resource. Use on_failure to only log the output when the command reports 
an error. Values are true, false, on_failure, and any legal log level. Valid 
values are true, false, on_failure.
</pre>

<https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/exec.rb#L182>
<pre>
    newparam(:logoutput) do
      desc "Whether to log output.  Defaults to logging output at the
        loglevel for the `exec` resource. Use *on_failure* to only
        log the output when the command reports an error.  Values are
        **true**, *false*, *on_failure*, and any legal log level."

      newvalues(:true, :false, :on_failure)
    end
</pre>




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to