Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
(#638) Workaround for unbreaking discovery
Browse files Browse the repository at this point in the history
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:
choria-io/puppet-mcollective#268
  • Loading branch information
smortex committed Dec 13, 2020
1 parent df12de9 commit edbf1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mcollective/discovery/choria.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit edbf1e7

Please sign in to comment.