feat: enable having get variable from local setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -8,6 +8,8 @@ use uuid::Uuid;
|
||||
pub struct AgentConfig {
|
||||
pub agent_id: String,
|
||||
pub discovery: String,
|
||||
|
||||
pub labels: BTreeMap<String, String>,
|
||||
}
|
||||
|
||||
impl AgentConfig {
|
||||
@@ -17,6 +19,7 @@ impl AgentConfig {
|
||||
Ok(Self {
|
||||
agent_id: config.agent_id,
|
||||
discovery: config.discovery,
|
||||
labels: config.labels.unwrap_or_default(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user