On Mon, Jul 16, 2012 at 7:46 AM, Dave Lloyd <d...@davelloyd.com> wrote: > Running 2.7.14 both on the client and server. > > I've created a defined type for managing network interface IPs and static > routes. The routes are passed in as an array of hashes. I used the empty() > function to see if the array is empty before attempting to call another > defined type to write out the files for managing static routes. Whenever I > try to apply this on the client, I receive the following error: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Function 'empty' does not return a value at > /etc/puppet/modules/netif/manifests/init.pp:78 on node [REDACTED] > warning: Not using cache on failed catalog > err: Could not retrieve catalog; skipping run
empty() should be an rvalue function. In this case posting the empty() function would be more helpful than the puppet manifests. Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.