feat: enable checking if it should actually run
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:
@@ -31,6 +31,13 @@ pub async fn execute() -> anyhow::Result<()> {
|
||||
setup_labels.insert(k, v);
|
||||
}
|
||||
|
||||
if !setup_labels.contains_key("node_name") {
|
||||
setup_labels.insert(
|
||||
"node_name".into(),
|
||||
petname::petname(2, "-").expect("to be able to generate a valid petname"),
|
||||
);
|
||||
}
|
||||
|
||||
agent::setup_config(discovery, force, setup_labels).await?;
|
||||
tracing::info!("wrote default agent config");
|
||||
}
|
||||
|
Reference in New Issue
Block a user