Skip to content

Commit e21edb8

Browse files
committed
move substitute to the right place
1 parent 71c6c62 commit e21edb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/common/installer/scripts/fluent-bit-conf-customizer.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def substituteFluentBitPlaceHolders
190190
end
191191

192192
new_contents = substituteHighLogScaleConfig(enableFbitThreading, storageType, storageMaxChunksUp, new_contents)
193-
193+
new_contents = substituteNetworkFlowLogs(networkFlowLogsEnabled, new_contents)
194194
if !kubernetesMetadataCollection.nil? && kubernetesMetadataCollection.to_s.downcase == "true"
195195
new_contents = new_contents.gsub("#${KubernetesFilterEnabled}", "")
196196
end
@@ -216,7 +216,6 @@ def substituteFluentBitPlaceHolders
216216
text = File.read(@fluent_bit_common_conf_path)
217217
text = substituteStorageTotalLimitSize(text)
218218
new_contents = substituteMultiline(multilineLogging, stacktraceLanguages, text)
219-
new_contents = substituteNetworkFlowLogs(networkFlowLogsEnabled, new_contents)
220219
File.open(@fluent_bit_common_conf_path, "w") { |file| file.puts new_contents }
221220
puts "config::Successfully substituted the placeholders in fluent-bit-common.conf file"
222221

0 commit comments

Comments
 (0)