[Puppet-dev] Re: Rspec giving no implicit conversion of Hash into String for an array

2017-08-25 Thread James Perry
As an update to this odd issue, I did a puppet module generate to create a fresh directory setup and then copied in the the Puppet code, templates and spec files from the old one. Oddly it had no problems without any code modification that I can find anywhere. The same applies to using the PDK t

[Puppet-dev] Re: Rspec giving no implicit conversion of Hash into String for an array

2017-08-18 Thread James Perry
*Continued:* # /usr/local/share/gems/gems/puppet-4.10.4/lib/puppet/pops/functions/function.rb:45:in `call' # :2:in `block in call_function' # /usr/local/share/gems/gems/puppet-4.10.4/lib/puppet/pops/evaluator/runtime3_support.rb:313:in `eval' # /usr/local/share/gems/gems

[Puppet-dev] Re: Rspec giving no implicit conversion of Hash into String for an array

2017-08-18 Thread James Perry
# Continued # /usr/local/share/gems/gems/puppet-4.10.4/lib/puppet/pops/functions/function.rb:45:in `call' # :2:in `block in call_function' # /usr/local/share/gems/gems/puppet-4.10.4/lib/puppet/pops/evaluator/runtime3_support.rb:313:in `eval' # /usr/local/share/gems

[Puppet-dev] Re: Rspec giving no implicit conversion of Hash into String for an array

2017-08-18 Thread James Perry
So let me try this again. Here is the full init.pp and spec file being used. The setup is very simple. Likewise it does't matter if the *$sshd_hostkey_rhel_cent_7 *is setup as a smart parameter or set inside the module itself, the error "*Evaluation Error: Error while evaluating a Function C

[Puppet-dev] Re: Rspec giving no implicit conversion of Hash into String for an array

2017-08-18 Thread James Perry
So let me try this again. Here is the full init.pp and spec file being used. The setup is very simple. Likewise it does't matter if the *$sshd_hostkey_rhel_cent_7 *is setup as a smart parameter or set inside the module itself, the error "*Evaluation Error: Error while evaluating a Function C

[Puppet-dev] Re: Rspec giving no implicit conversion of Hash into String for an array

2017-08-16 Thread John Bollinger
On Wednesday, August 16, 2017 at 11:51:30 AM UTC-5, James Perry wrote: > > I am getting an odd error when running rake spec on my module. The > functions work fine when setup in Puppet, but when I try to test it rspec > is kicking out an error about my $myarr arrays. When I comment it out, th