mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-07-14 14:34:19 +00:00
kata-shell: fix bundles display of the empty array
Change-Id: Idfd75a3c3e14c543c79b78a7f3133b0de4edf874 GitOrigin-RevId: 3fe641ccf0e1ee577689776f531eb853e9972d53
This commit is contained in:
parent
6850f3b3e0
commit
066d37db24
@ -238,7 +238,9 @@ fn bundles_command(
|
|||||||
) -> Result<(), CommandError> {
|
) -> Result<(), CommandError> {
|
||||||
match kata_proc_ctrl_get_running_bundles() {
|
match kata_proc_ctrl_get_running_bundles() {
|
||||||
Ok(bundle_ids) => {
|
Ok(bundle_ids) => {
|
||||||
writeln!(output, "{}", bundle_ids.join("\n"))?;
|
for b in bundle_ids {
|
||||||
|
writeln!(output, "{}", b)?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Err(status) => {
|
Err(status) => {
|
||||||
writeln!(output, "get_running_bundles failed: {:?}", status)?;
|
writeln!(output, "get_running_bundles failed: {:?}", status)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user