hypha: protect from panics in the network stack (due to interface going away)

This commit is contained in:
Alex Zenla
2024-02-06 06:19:36 +00:00
parent a3cda1372f
commit 0c11744c50
2 changed files with 24 additions and 10 deletions

View File

@ -110,15 +110,10 @@ fn main() -> Result<()> {
Commands::List { .. } => {
let containers = controller.list()?;
let mut table = cli_tables::Table::new();
let header = vec!["domain", "uuid", "ipv4", "image"];
let header = vec!["uuid", "ipv4", "image"];
table.push_row(&header)?;
for container in containers {
let row = vec![
container.domid.to_string(),
container.uuid.to_string(),
container.ipv4,
container.image,
];
let row = vec![container.uuid.to_string(), container.ipv4, container.image];
table.push_row_string(&row)?;
}