Hi,

class abc {
  keys($netconfig['interfaces']).each |String $interface| {
    if $netconfig['interfaces'][$interface]['ip6'] {
      $myvariable = 'yes'
      break()
    }
  }

  if $myvariable == 'yes' {
    do something
  }
}

How can I access $myvariable?

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/r50n62%243pet%241%40ciao.gmane.io.

Reply via email to