Skip to content

Commit

Permalink
in_tail: Remove :no option from enable_glob
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Mar 26, 2024
1 parent 926a700 commit 1b478b2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def initialize
config_param :path, :string
desc 'path delimiter used for spliting path config'
config_param :path_delimiter, :string, default: ','
desc 'Use extended glob patterns. Adding a capability to handle [] and ?.'
config_param :enable_glob, :enum, list: [:with_wildcards, :extended, :no], default: :with_wildcards
desc 'Choose using glob patterns. Adding whether a capability to handle [] and ? or not.'
config_param :enable_glob, :enum, list: [:with_wildcards, :extended], default: :with_wildcards
desc 'The tag of the event.'
config_param :tag, :string
desc 'The paths to exclude the files from watcher list.'
Expand Down Expand Up @@ -292,9 +292,6 @@ def use_glob?(path)
path.include?('*') || path.include?('?') || /\[.*\]/.match(path)
elsif @enable_glob == :with_wildcards
path.include?('*')
elsif @enable_glob == :no
# Always return false when glob is turned off.
false
end
end

Expand Down

0 comments on commit 1b478b2

Please sign in to comment.