We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello guys
I retrieve a puppet environment inventory using pypuppetdb and i'm looking for a way to exclude puppet entries where noop was enabled.
My python code is something like that to retrieve only the puppet environment name :
query = AndOperator() fact_query = OrOperator() fact_query.add(EqualsOperator('name', fact)) query.add(fact_query) return self.db.facts(query=query)
and I tried things like this but I get a 400 Bad Request :
query = AndOperator() fact_query = OrOperator() fact_query.add(EqualsOperator('name', fact)) query.add(fact_query) status_query = OrOperator() arg_query = AndOperator() arg_query.add(EqualsOperator('noop_pending', False)) arg_query.add(EqualsOperator('noop', False)) status_query.add(arg_query) query.add(status_query) return self.db.facts(query=query)
Maybe /facts is not the right way to retrieve all hosts current puppet environment name.
Thanks for your help Victor
The text was updated successfully, but these errors were encountered:
up
Sorry, something went wrong.
No branches or pull requests
Hello guys
I retrieve a puppet environment inventory using pypuppetdb and i'm looking for a way to exclude puppet entries where noop was enabled.
My python code is something like that to retrieve only the puppet environment name :
and I tried things like this but I get a 400 Bad Request :
Maybe /facts is not the right way to retrieve all hosts current puppet environment name.
Thanks for your help
Victor
The text was updated successfully, but these errors were encountered: