Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying defines no longer works #102

Open
rolandkool opened this issue Apr 18, 2017 · 2 comments
Open

Querying defines no longer works #102

rolandkool opened this issue Apr 18, 2017 · 2 comments

Comments

@rolandkool
Copy link

rolandkool commented Apr 18, 2017

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
Copy link
Author

rolandkool commented May 10, 2017

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

@fatmcgav
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants