Issue #8708 has been updated by Jeff McCune. Category set to stdlib Status changed from Merged - Pending Release to Closed Assignee set to Jeff McCune
# Released # Released with 2.0.0 just now. ---------------------------------------- Feature #8708: Add method to detect existance of hash keys https://projects.puppetlabs.com/issues/8708 Author: Dan Bode Status: Closed Priority: Normal Assignee: Jeff McCune Category: stdlib Target version: Keywords: discovered_task, stdlib Branch: It is currently difficult to determine if a hash contains a certain key. Until #8705 is resolved, we need a method that can take a hash and determine if it has a certain key. I propose that we introduce the method has_key <pre> if has_key({}, 'key') { # should never get here } </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
