get_agent_meta: include hive_name + swarm_name in response (#710)
This commit is contained in:
parent
09c1abe5b4
commit
a91cf4493f
6 changed files with 69 additions and 1 deletions
|
|
@ -273,6 +273,7 @@ async fn dispatch(req: &AgentRequest, agent: &str, coord: &Arc<Coordinator>) ->
|
|||
"agent"
|
||||
}
|
||||
.to_owned();
|
||||
let (hive_name, swarm_name) = crate::container_view::hive_swarm_names();
|
||||
AgentResponse::AgentMeta {
|
||||
name: target.to_owned(),
|
||||
role,
|
||||
|
|
@ -280,6 +281,8 @@ async fn dispatch(req: &AgentRequest, agent: &str, coord: &Arc<Coordinator>) ->
|
|||
hyperhive_rev: crate::auto_update::current_flake_rev(&coord.hyperhive_flake),
|
||||
status_text,
|
||||
status_set_at,
|
||||
hive_name,
|
||||
swarm_name,
|
||||
}
|
||||
}
|
||||
AgentRequest::CancelLooseEnd { kind, id } => crate::questions::handle_cancel_loose_end(
|
||||
|
|
|
|||
Loading…
Reference in a new issue