feat: add default no labels
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-12-01 22:46:22 +01:00
parent 94025a02ce
commit 5e1b585a2d
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA

View File

@ -26,7 +26,7 @@ struct ConfigFile {
agent_id: String,
discovery: String,
labels: BTreeMap<String, String>,
labels: Option<BTreeMap<String, String>>,
}
impl ConfigFile {
@ -55,7 +55,7 @@ impl ConfigFile {
let s = Self {
agent_id: Uuid::new_v4().to_string(),
discovery: discovery.into(),
labels: labels.into(),
labels: Some(labels.into()),
};
let directory = dirs::data_dir()