I am trying to find out how I can validate more than one type of data structure for a given value in a manifest? In particular I would like to be able to have either a string or a hash be a valid data structure. Something like: if ($myvar != false) { validate_string($myvar) || validate_hash($myvar) } Does anybody know if this is possible to do?
-- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/732c0ec6-d9bb-4f32-9eae-4667037a0e87%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.