File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1528,13 +1528,12 @@ function Configure-LoggingAgent {
1528
1528
if (-not (ShouldWrite- File $fluentd_config_file )) {
1529
1529
Log- Output (" Skip: fluentd logging config $fluentd_config_file already " +
1530
1530
" exists" )
1531
- return
1531
+ } else {
1532
+ # Create a configuration file for kubernetes containers.
1533
+ # The config.d directory should have already been created automatically, but
1534
+ # try creating again just in case.
1535
+ New-Item $fluentd_config_dir - ItemType ' directory' - Force | Out-Null
1532
1536
}
1533
-
1534
- # Create a configuration file for kubernetes containers.
1535
- # The config.d directory should have already been created automatically, but
1536
- # try creating again just in case.
1537
- New-Item $fluentd_config_dir - ItemType ' directory' - Force | Out-Null
1538
1537
$config = $FLUENTD_CONFIG.replace (' NODE_NAME' , (hostname))
1539
1538
$config | Out-File - FilePath $fluentd_config_file - Encoding ASCII
1540
1539
Log- Output " Wrote fluentd logging config to $fluentd_config_file "
You can’t perform that action at this time.
0 commit comments