dalen / puppet-puppetdbquery

Query functions for PuppetDB
Apache License 2.0
198 stars 71 forks source link

Querying defines no longer works #102

Open rolandkool opened 7 years ago

rolandkool commented 7 years ago

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 commented 7 years ago

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

fatmcgav commented 7 years ago

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