What version of puppet are you using? kbarber:~ ken$ puppet --version 2.6.8 kbarber:~ ken$ puppet -e '$callapidata = [ 'wert1','wert2'] notice $callapidata[1]' notice: Scope(Class[main]): wert2 notice: Finished catalog run in 0.01 seconds kbarber:~ ken$
ken. On Thu, Jun 16, 2011 at 10:36 AM, Roband <andreas.hac...@universa.de> wrote: > Hi there, > > i can't use array in puppet. Here is my codesnipplet: > > $callapidata = [ 'wert1','wert2'] > notice $callapidata[1] > > A puppetrun results in: > > Could not retrieve catalog from remote server: Error 400 on SERVER: > can't convert String into Integer at /etc/puppet/myenv/modules/ > uc4client/manifests/init.pp:41 on node testnode > > > Thanks for your help. > > > Greetings > Roband > > -- > 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. > > -- 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.