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

Commit

Permalink
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 dff0f43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mcollective/discovery/choria.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def proxy_request
# @param filter [String] a collective name
# @return [String] a query string
def discover_collective(filter)
return nil
'certname in inventory[certname] { facts.mcollective.server.collectives.match("\d+") = "%s" }' % filter
end

Expand Down

0 comments on commit dff0f43

Please sign in to comment.