saz / puppet-sudo

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

Class[Sudo]: parameter 'purge_ignore' expects a value of type Undef or String, got Tuple #221

Closed minorOffense closed 5 years ago

minorOffense commented 6 years ago

Our puppet class has include ::sudo at the top and in our hiera file we have the following:

## Sudo Settings
sudo::purge: false
sudo::purge_ignore:
  - vagrant

When we upgraded to 5.0.0 we started to get that error in the title. Looking at the definition it looks correct for purge_ignore as it will take an array or a string. I guess I'm just looking for some feedback or ideas as to why this would cause that issue.

mlg9000 commented 6 years ago

We too have this issue with 5.0.0.

hbuckle commented 6 years ago

If you download the 5.0.0 release it appears the code to make it accept an array is missing

Optional[String] $purge_ignore = undef,

minorOffense commented 6 years ago

I guess we need a 5.0.1 release then.

saz commented 5 years ago

This should be resolved in the current master and soon published with a new release