Issue #13212 has been updated by Jason Ashby.

File cress.txt added
File cress.good.txt added

Attached is some output from a failed and successful run per **puppet agent -t 
--debug --trace**.  Perhaps someone can take a look and see any differences.  
The YAML that gets passed to the define statement looks like this:

      instances: 
        - device: "nfsf-2:/vol/pg007"
          port: 5487

As I mentioned before though, it happens with various data types.

I should add some info about my master:

CentOS 6.4

Puppet 3.1.1

PuppetDB 1.4.0

Foreman 1.2.2



----------------------------------------
Bug #13212: Pass array to custom define fails
https://projects.puppetlabs.com/issues/13212#change-99327

* Author: Juan José Presa Rodal
* Status: Needs More Information
* Priority: Normal
* Assignee: 
* Category: parser
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
I'm trying to pass a simple array to a custom define and fails with error:

`err: Could not retrieve catalog from remote server: Could not intern from 
pson: Could not convert from pson: Could not find relationship source 
"Foo::Map[idbazip2.2.2.2]"
`

I think that code is very correct:


`$foo = [{"id" => "bar", "ip" => "1.1.1.1"}, {"id" => "baz", "ip" => 
"2.2.2.2"}]`

`foo::map {$foo:}`

`define foo::map () {
  notify {$name['id']:
  }
}
`


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to