So I have a plan where I get facts...here is the relevant section...

  $target_facts = run_plan('facts', 'targets' => $targets)
  $target_facts.each |$result| {
  $target = $result['target']
  $targetfacts = $result['value']
  $os_release = $targetfacts['os']['release']['major']
  $kernel_version = $targetfacts['kernelrelease']

But I get this error...

  Evaluation Error: Operator '[]' is not applicable to an Undef Value.

This is referring to the following line which attempts to assign a fact...

  $os_release = $targetfacts['os']['release']['major']

Any ideas what I am doing wrong here ?

Thanks.

-- 
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/bdb4434a-d308-48b3-aa8d-c92fb964f873n%40googlegroups.com.

Reply via email to