Skip to content

Commit

Permalink
(choria-io#114) support expr filters and retire old filter logic
Browse files Browse the repository at this point in the history
Signed-off-by: R.I.Pienaar <rip@devco.net>
  • Loading branch information
ripienaar committed Jan 10, 2021
1 parent 897f71c commit 9f266f0
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 1,422 deletions.
1 change: 0 additions & 1 deletion lib/mcollective.rb
Expand Up @@ -40,7 +40,6 @@ module MCollective
require "mcollective/facts"
require "mcollective/logger"
require "mcollective/log"
require "mcollective/matcher"
require "mcollective/message"
require "mcollective/optionparser"
require "mcollective/generators"
Expand Down
87 changes: 0 additions & 87 deletions lib/mcollective/application/describe_filter.rb

This file was deleted.

25 changes: 12 additions & 13 deletions lib/mcollective/discovery.rb
Expand Up @@ -85,19 +85,18 @@ def force_discovery_method_by_filter(filter)
def timeout_for_compound_filter(compound_filter)
return 0 if compound_filter.nil? || compound_filter.empty?

timeout = 0

compound_filter.each do |filter|
filter.each do |statement|
next unless statement["fstatement"]

pluginname = Data.pluginname(statement["fstatement"]["name"])
ddl = DDL.new(pluginname, :data)
timeout += ddl.meta[:timeout]
end
end

timeout
# disabled while bringing in new compound filters
# compound_filter.each do |filter|
# filter.each do |statement|
# next unless statement["fstatement"]
#
# pluginname = Data.pluginname(statement["fstatement"]["name"])
# ddl = DDL.new(pluginname, :data)
# timeout += ddl.meta[:timeout]
# end
# end

0
end

def discovery_timeout(timeout, filter)
Expand Down
220 changes: 0 additions & 220 deletions lib/mcollective/matcher.rb

This file was deleted.

0 comments on commit 9f266f0

Please sign in to comment.