{"comment":{"created_at":"2011-10-20T15:25:23Z","body":"```\r\ngit log\r\n\r\ncommit ee1081571e5926c6ac90158160b7a0e241cfa54c\r\nMerge: 0466e1b 4540949\r\nAuthor: Jeff McCune <jeff@puppetlabs.com>\r\nDate:   Thu Aug 4 17:58:05 2011 -0700\r\n```\r\n\r\nDoes this give you what you need?","updated_at":"2011-10-20T15:25:23Z","url":"https://api.github.com/repos/puppetlabs/puppetlabs-java/issues/comments/2470066","id":2470066,"user":{"avatar_url":"https://secure.gravatar.com/avatar/f129a541bc644185e2d12a43bb77c6c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f129a541bc644185e2d12a43bb77c6c3","url":"https://api.github.com/users/adamjreilly","id":152831,"login":"adamjreilly"}},"action":"created","issue":{"number":12,"created_at":"2011-10-20T14:55:38Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Might be doing something wrong here, but in trying to apply this manifest straight out of the repo, I got:\r\n\r\n```\r\nundefined method `any?' for \"^jdk$|^jre$\":String at /etc/puppet/modules/java/manifests/init.pp:19 on node...\r\n```\r\n\r\nLooking at validate_re shows that it's expecting an Array, b/c of the call to .any?.  I was able to fix the issue by wrapping []'s around the strings being passed into validate_re like so:\r\n\r\n```\r\n  validate_re($distribution, ['^jdk$|^jre$'])\r\n  validate_re($version, ['installed|^[._0-9a-zA-Z:-]+$'])\r\n```\r\nNot sure if the fix should be on the validate_re side or the init.pp","comments":2,"title":"Undefined Method","updated_at":"2011-10-20T15:25:23Z","url":"https://api.github.com/repos/puppetlabs/puppetlabs-java/issues/12","id":2005574,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/f129a541bc644185e2d12a43bb77c6c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f129a541bc644185e2d12a43bb77c6c3","url":"https://api.github.com/users/adamjreilly","id":152831,"login":"adamjreilly"},"html_url":"https://github.com/puppetlabs/puppetlabs-java/issues/12","labels":[],"state":"open"},"legacy":{"issue_id":2005574,"comment_id":2470066}}