kata-shell: fix bundles display of the empty array

Change-Id: Idfd75a3c3e14c543c79b78a7f3133b0de4edf874
GitOrigin-RevId: 3fe641ccf0e1ee577689776f531eb853e9972d53
This commit is contained in:
Sam Leffler 2022-06-08 21:33:22 +00:00
parent 6850f3b3e0
commit 066d37db24

View File

@ -238,7 +238,9 @@ fn bundles_command(
) -> Result<(), CommandError> {
match kata_proc_ctrl_get_running_bundles() {
Ok(bundle_ids) => {
writeln!(output, "{}", bundle_ids.join("\n"))?;
for b in bundle_ids {
writeln!(output, "{}", b)?;
}
}
Err(status) => {
writeln!(output, "get_running_bundles failed: {:?}", status)?;