puppet-puppetdbquery icon indicating copy to clipboard operation
puppet-puppetdbquery copied to clipboard

Querying defines no longer works

Open rolandkool opened this issue 8 years ago • 2 comments

Hi, We're trying to upgrade to latest puppetdb + puppetdbquery, however it seems that querying for 'defines with parameters' no longer works. It throws a parse error and I don't understand why. Can't find any examples in the documentation (only with classes, not defines) but it sure works with puppetdbquery 1.x. Example: puppet query nodes My::Define{param1=somevalue} parse error on value "{" (LBRACE)

rolandkool avatar Apr 18 '17 08:04 rolandkool

It seems you can work around this issue by adding a [*] to the query: puppet query nodes My::Define[*]{param1=somevalue}

rolandkool avatar May 10 '17 13:05 rolandkool

Just been hit by the same issue, and can confirm the same fix... Many thanks @rolandkool for posting...

fatmcgav avatar May 15 '17 11:05 fatmcgav