🐛 fix(config): correct typo in eol_cmd module name

- fix a typo in the module name from `eol_cmd` to `eol_action`
- update the `set_command` function to accept a reference to `EolAction`
This commit is contained in:
Jeremiah Russell
2025-10-09 14:02:45 +01:00
committed by Jeremiah Russell
parent ae41e86744
commit 992e62f0c9

View File

@@ -2,7 +2,7 @@ use std::{collections::BTreeSet, fmt};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use crate::{Retention, eol_cmd::EolAction}; use crate::{Retention, eol_action::EolAction};
/// End of life rules /// End of life rules
#[derive(Debug, Serialize, Deserialize, Default, Clone)] #[derive(Debug, Serialize, Deserialize, Default, Clone)]
@@ -92,7 +92,7 @@ impl EolRule {
self.labels.iter().map(|i| i.to_string()).collect() self.labels.iter().map(|i| i.to_string()).collect()
} }
pub(crate) fn set_command(&mut self, value: EolAction) -> &mut Self { pub(crate) fn set_command(&mut self, value: &EolAction) -> &mut Self {
self.action = value.to_string(); self.action = value.to_string();
self self
} }