Issue #15027 has been updated by Steve Huff.
More discussion of this issue in [#15029](http://projects.puppetlabs.com/issues/15029). ---------------------------------------- Bug #15027: initctl version check with whitespace fails https://projects.puppetlabs.com/issues/15027#change-65022 Author: Adrien Thebo Status: Unreviewed Priority: Normal Assignee: Category: provider Target version: Affected Puppet version: Keywords: Branch: When performing the version check for the upstart provider, whitespace in an argument causes a parse failure. This occurred on an Ubuntu 11.10 machine running upstart 1.3. ### Steps to reproduce Run `/sbin/initctl " --version"` on an ubuntu system with upstart with a version around 1.3. The key is the quoted whitespace around --version. ### Example root@deb-builder:~# initctl " --version" initctl: invalid command: --version Try `initctl --help' for more information. root@deb-builder:~# initctl "--version" initctl (upstart 1.3) Copyright (C) 2011 Scott James Remnant, Canonical Ltd. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I think this is the culprit line: @@upstart_version ||= SemVer.new(initctl(" --version").match(/initctl \(upstart (\d\.\d[\.\d]?)\)/)[1]) -- 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.
