asq
2011-Jan-03 19:56 UTC
[Puppet Users] can''t get yaml from 2.6 loaded into 3rd party script
what am i doing wrong? <0>root@test2(46)~$ cat <<.|/usr/bin/ruby ; echo $?> require ''puppet'' > require ''yaml'' > YAML.load_file(''/var/lib/puppet/client_yaml/catalog/$HOSTNAME.yaml'') > ./usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `transfer'': can''t convert Array into String (TypeError) from /usr/lib/ruby/1.8/yaml.rb:133:in `each'' from /usr/lib/ruby/1.8/yaml.rb:133:in `transfer'' from /usr/lib/ruby/1.8/yaml.rb:133:in `node_import'' from /usr/lib/ruby/1.8/yaml.rb:133:in `load'' from /usr/lib/ruby/1.8/yaml.rb:133:in `load'' from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file'' from /usr/lib/ruby/1.8/yaml.rb:143:in `open'' from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'' from -:3 1 <0>root@test2(47)~$ rpm -q puppet puppet-2.6.4-1 <1>root@test1(2)~$ cat <<.|/usr/bin/ruby ; echo $?> require ''puppet'' > require ''yaml'' > YAML.load_file(''/var/lib/puppet/client_yaml/catalog/$HOSTNAME.yaml'') > .0 <0>root@test1(3)~$ rpm -q puppet puppet-0.25.5-1.el5 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.