Skip to content

Commit

Permalink
Provide real data for agent/vm names
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander V. Nikolaev <[email protected]>
  • Loading branch information
avnik committed Nov 15, 2024
1 parent 799930e commit 9380577
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/admin/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,17 @@ impl From<RegistryEntry> for QueryResult {
} else {
VMStatus::PoweredOff
};
let vm_name = val.vm_name().map(|s| s.to_owned());
let agent_name = val.agent_name().map(|s| s.to_owned());
QueryResult {
name: val.name,
description: val.status.description,
status,
trust_level: TrustLevel::default(),
vm_type: val.r#type.vm,
service_type: val.r#type.service,
vm_name: Some("FIXME".into()),
agent_name: Some("FIXME".into()),
vm_name,
agent_name,
}
}
}

0 comments on commit 9380577

Please sign in to comment.