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

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

No files matched your search

+2 -7
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)?;
}