Hi,

helmut@puppet:~$ sudo puppet lookup --node mynode roles
helmut@puppet:~$

Good because does not exist.

class common inherits config {
  include $classes
  if ($roles) {
    keys($roles).each |String $role| { <== line9
[...]

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, 'keys' parameter 'hsh' expects a Hash value, got Array (file: /etc/puppetlabs/code/modules/common/manifests/init.pp, line: 9, column: 5) on node mynode

Why? $roles does not exists so why is keys($roles).each |String $role| { executed?

helmut@puppet:~$ puppet -V
6.16.0
helmut@puppet:~$ puppetserver -v
puppetserver version: 6.12.0
helmut@puppet:~$

Thank you!

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/rcctn5%242jfi%241%40ciao.gmane.io.

Reply via email to