Closed steve-hawkins closed 7 years ago
@hawky84 looks like this is improperly pinned to STDLIB 3.2.0 and if you look a the api's available to stdlib 3.2.0 there is no function called suffix until 4.0, we have one of two ways forward either remove the older dependency of 3.2.0 and bump to 4.0 which would require a major version bump or a function that would do this work instead of depending on stdlib
@liamjbennett
I'd go with the stdlib update. We should probably have done this a long time ago anyway so this is a good excuse.
@liamjbennett took a quick stab at a Type and Provider change for this as well, will work on more but https://github.com/cyberious/puppet-windowsfeature/blob/Function/lib/puppet/provider/windowsfeature/powershell.rb
It is ugly so far I warn you
Nice. I'll try and build up the beaker tests so that we can make changes like that.
Well I have been unable to get back to this clearly.
Closing as this as the feature_name attribute no longer exists when this got converted to a custom type.
I've tried several attempts to get the feature_name attribute to accept an array, but even using the 'IIS' example straight from the Puppet forge documentation I get the following error : -
This is when using Puppet Enterprise 3.2 and the agent is running on a Windows Server 2012 R2
Here are the examples I have tried : -
Line 93:
$escaped = join(prefix(suffix($feature_name,'\''),'\''),',')
Dependencies are covered:
puppetlabs-stdlib (v3.2.0)
puppetlabs-powershell (v1.0.3)