Issue #10109 has been updated by Brandon Turner.

Max,

Thanks for working on this!  I will try out the patch this weekend.

I'm using composite name vars to install RVM with puppet.  You can see the 
module here:
[[https://github.com/blt04/puppet-rvm]]

Specifically, for installing gems and gemsets in a specific Ruby version in RVM:
[[https://github.com/blt04/puppet-rvm/blob/master/lib/puppet/type/rvm_gem.rb]]
[[https://github.com/blt04/puppet-rvm/blob/master/lib/puppet/type/rvm_gemset.rb]]

Composite namevars allow me to use syntax like:

    rvm_gem {
      'ruby-1.9.2-p290/bundler':
        ensure => '1.0.18',
        require => Rvm_gemset['ruby-1.9.2-p290@myproject'];
    }

where `ruby-1.9.2-p290` is the name var `:ruby_version`, and `bundler` is the 
namevar `:name`.
----------------------------------------
Bug #10109: Composite keys cause Invalid parameter false error
https://projects.puppetlabs.com/issues/10109

Author: Brandon Turner
Status: Needs More Information
Priority: Normal
Assignee: Brandon Turner
Category: agent
Target version: 
Affected Puppet version: 2.7.4
Keywords: 
Branch: 


When using a type with more than one name var (composite keys), the agent 
outputs an error:

    err: Could not create resource file /var/lib/puppet/state/resources.txt: 
Invalid parameter false(false) at <filename>:<line>

This first appeared in version 2.7.4, most likely in commit:7a39ca72e64.  When 
multiple key attributes exist, `resource.name_var` is false.  The new 
`write_resource_file` method attempts to call `Puppet::Type#[]` with `false` 
which causes the Invalid parameter error.

The new resource list file should support types with composite keys.


-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to