Skip to content

Commit

Permalink
Rename agent sections to avoid crashes in Checkmk
Browse files Browse the repository at this point in the history
* `robotmk_config` --> `robotmk_config_v2`
* `robotmk_rcc_setup_failures` --> `robotmk_rcc_setup_failures_v2`

CMK-17005
CMK-17008
  • Loading branch information
jherbel committed Apr 18, 2024
1 parent 3801c39 commit 60ef004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/agent_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn config_path_from_env() -> Result<Utf8PathBuf, String> {
fn report_config_section(section: &ConfigSection) {
let section_serialized =
serde_json::to_string(section).expect("Unexpected serialization error: ConfigSection");
println!("<<<robotmk_config:sep(0)>>>");
println!("<<<robotmk_config_v2:sep(0)>>>");
println!("{section_serialized}");
}

Expand Down
2 changes: 1 addition & 1 deletion src/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct RCCSetupFailures {

impl WriteSection for RCCSetupFailures {
fn name() -> &'static str {
"robotmk_rcc_setup_failures"
"robotmk_rcc_setup_failures_v2"
}
}

Expand Down

0 comments on commit 60ef004

Please sign in to comment.