From edbf1e7440d1b5ac231fe878e9106813af2ab90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Sun, 13 Dec 2020 13:04:59 -1000 Subject: [PATCH] (#638) Workaround for unbreaking discovery After adjusting the repo to fix discovery using PuppetDB, I got exceptions when trying to find nodes: PuppetDB would raise an org.postgresql.util.PSQLException: related to an invalid syntax. The `mcollective.server` facts where removed some time ago: https://github.com/choria-io/puppet-mcollective/pull/268 --- lib/mcollective/discovery/choria.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mcollective/discovery/choria.rb b/lib/mcollective/discovery/choria.rb index fbea509..57d72c8 100644 --- a/lib/mcollective/discovery/choria.rb +++ b/lib/mcollective/discovery/choria.rb @@ -61,7 +61,7 @@ def proxy_request # @param filter [String] a collective name # @return [String] a query string def discover_collective(filter) - 'certname in inventory[certname] { facts.mcollective.server.collectives.match("\d+") = "%s" }' % filter + nil end # Searches for facts