saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
105 stars 215 forks source link

right operand of + is not a number at sudo/manifests/params.pp:13 #137

Closed zeha closed 8 years ago

zeha commented 9 years ago

This line (manifests/param.pp:13):

if (0 + $::operatingsystemmajrelease >= 7) {

breaks on Debian hosts that are set to use unstable/sid, because operatingsystemmajrelease will not be a number (but rather stretch/sid until the next release).

deogracia commented 8 years ago

It breaks even on wheezy

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.9 (wheezy)
Release:    7
Codename:   wheezy
deogracia commented 8 years ago

I upgrade my master from puppet and client from 2.7 to puppet 3.8.3. it works :D My bad ...

saz commented 8 years ago

This issue should be resolved in the current master