Issue #15028 has been updated by Matthaus Litteken.

Status changed from Accepted to In Topic Branch Pending Review
Assignee set to Matthaus Litteken

Pull Request: <https://github.com/puppetlabs/puppet/pull/862>
----------------------------------------
Bug #15028: Upstart service provider fails when using a version of upstart that 
isn't a complete SemVer string
https://projects.puppetlabs.com/issues/15028#change-65230

Author: Adrien Thebo
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Matthaus Litteken
Category: provider
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


The upstart provider will fail when trying to parse the semver of upstart, if 
the third digit is omitted.

The affected platform in this case is Ubuntu 11.10. Given this platform, the 
output of `initctl --version` is as follows:

<pre>
root@deb-builder:~# /sbin/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.
</pre>

This causes the upstart provider to fail with the following output:

    err: /Stage[main]/Ssh::Server/Service[sshd]: Could not evaluate: Invalid 
version string '1.3'!

### Example

<pre>
root@deb-builder:~# ruby -rsemver -e 'puts SemVer.new("1.3.0")'
v1.3.0
root@deb-builder:~# ruby -rsemver -e 'puts SemVer.new("1.3")'
/usr/lib/ruby/1.8/semver.rb:71:in `initialize': Invalid version string '1.3'! 
(ArgumentError)
        from -e:1:in `new'
        from -e:1
</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