Skip to content

Commit 61edcba

Browse files
committed
Fix fleet and local path onversion (#863)
# What does this PR do? Invert the path returned by `Configurator::local_stable_configuration_path` and `Configurator::fleet_stable_configuration_path` because they were wrong
1 parent f439466 commit 61edcba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library-config/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,17 +452,17 @@ impl Configurator {
452452

453453
pub const fn local_stable_configuration_path(target: Target) -> &'static str {
454454
match target {
455-
Target::Linux => "/etc/datadog-agent/managed/datadog-agent/stable/application_monitoring.yaml",
456-
Target::Macos => "/opt/datadog-agent/etc/stable/application_monitoring.yaml",
457-
Target::Windows => "C:\\ProgramData\\Datadog\\managed\\datadog-agent\\stable\\application_monitoring.yaml",
455+
Target::Linux => "/etc/datadog-agent/application_monitoring.yaml",
456+
Target::Macos => "/opt/datadog-agent/etc/application_monitoring.yaml",
457+
Target::Windows => "C:\\ProgramData\\Datadog\\application_monitoring.yaml",
458458
}
459459
}
460460

461461
pub const fn fleet_stable_configuration_path(target: Target) -> &'static str {
462462
match target {
463-
Target::Linux => "/etc/datadog-agent/application_monitoring.yaml",
464-
Target::Macos => "/opt/datadog-agent/etc/application_monitoring.yaml",
465-
Target::Windows => "C:\\ProgramData\\Datadog\\application_monitoring.yaml",
463+
Target::Linux => "/etc/datadog-agent/managed/datadog-agent/stable/application_monitoring.yaml",
464+
Target::Macos => "/opt/datadog-agent/etc/stable/application_monitoring.yaml",
465+
Target::Windows => "C:\\ProgramData\\Datadog\\managed\\datadog-agent\\stable\\application_monitoring.yaml",
466466
}
467467
}
468468

0 commit comments

Comments
 (0)