Issue #17382 has been updated by Chad Huneycutt. Status changed from Needs More Information to Closed
We can close this. I can't reconstruct the problem right now. It looks like I rewrote the long string using variables that were set with sprintf, so it may have really been a quoting problem. I do not see a 'provider => shell' anywhere, so I don't think that is how I fixed it, although I may have set that globally somewhere. I will be rerunning the job that triggered this in the next week or two, and I'll bring it up with more in-depth info then if it bites me. ---------------------------------------- Bug #17382: exec command quote handling https://projects.puppetlabs.com/issues/17382#change-81354 Author: Chad Huneycutt Status: Closed Priority: Normal Assignee: Chad Huneycutt Category: Target version: Affected Puppet version: Keywords: Branch: I am having a hard time searching for this to see if it has already been reported. This worked on puppet 2.6, but since I upgraded to 2.7.19 it does not. I have an exec like this: exec { foo: path => '/usr/bin', command => "printf '%s\t%s(rw,sync,no_root_squash)\n' '/export/$name' '$name' >> bar", } puppet returns this when it tries to compile it: err: /Stage[main]//Exec[foo]/returns: change from notrun to 0 failed: Could not find command ' ' I suspect the quoting in the command, but I haven't had a chance to simplify it and figure out exactly where the extraction is messing up. -- 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.
