Markus Roberts wrote:
> ref =~ /^(\w+)\[(.*)\]$/m

Can confirm this fixes #4233 but looks like #4288 might be something
different.

After some more debugging I don't think it's linked to #4233 - however
with that patched I run the following:

exec { 'foo':
  command => 'if [ "abc" != "def" ]; then echo "this is a test"; fi',
  logoutput => true
}

and get:

puppet --trace --debug --verbose /tmp/4288.pp
/usr/lib/ruby/site_ruby/1.8/puppet/util/errors.rb:60:in `fail'
/usr/lib/ruby/site_ruby/1.8/puppet/type/exec.rb:673:in `validatecmd'
/usr/lib/ruby/site_ruby/1.8/puppet/type/exec.rb:481:in `validate'
/usr/lib/ruby/site_ruby/1.8/puppet/type.rb:1726:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:248:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/resource.rb:248:in `to_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:553:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:553:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:531:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:531:in `to_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:468:in `to_ral'
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:115:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:35:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:55:in `execute'
/usr/bin/puppet:4
'if [ "abc" != "def" ]; then echo "this is a test"; fi' is both
unqualifed and specified no search path at /tmp/4288.pp:5

James

-- 
Puppet Labs - http://www.puppetlabs.com
C: 503-734-8571

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to