Issue #20520 has been reported by Dominic Cleal.
----------------------------------------
Bug #20520: Update rgen to 0.6.2, remove Array monkey patching
https://projects.puppetlabs.com/issues/20520
* Author: Dominic Cleal
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category: parser
* Target version:
* Affected Puppet version: 3.2.0-rc1
* Keywords: rgen
* Branch:
----------------------------------------
With 3.2.0-rc1, monkey patches to Array were added to work around a bug in rgen
0.6.1. This is having an effect when Puppet is loaded into an application
(Foreman) with fog, the cloud library:
$ ruby -Ilib -rpuppet -rfog -e
'Fog::Compute::Ovirt.new.servers.get("091b80d2-0856-4fca-982e-19fe2958237d").interfaces.first'
/home/dcleal/code/fog/fog/lib/fog/core/attributes.rb:180:in `requires': vm
is required for this operation (ArgumentError)
If I remove the Array respond_to? monkey patch, the issue goes away.
There's a similar issue on Ruby 1.9.2 when Puppet's loaded into a Rails app,
where the to_hash override is causing problems. I'm aware though that 1.9.2
isn't a supported Ruby version for Puppet.
It looks like a simple fix to these issues would be updating to rgen 0.6.2, as
this now removes the need to monkey patch Array in this way.
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.