Merge branch 'development' into container-info2

This commit is contained in:
Christian Goll
2022-10-13 10:43:50 +02:00
73 changed files with 4237 additions and 420 deletions

View File

@@ -24,7 +24,12 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) {
if !ShowAll {
fmt.Printf("%s\n", r.Rootfs)
} else {
kernelVersion := r.KernelVersion
if kernelVersion == "" {
kernelVersion = "not found"
}
fmt.Printf("Name: %s\n", r.Name)
fmt.Printf("KernelVersion: %s\n", kernelVersion)
fmt.Printf("Rootfs: %s\n", r.Rootfs)
fmt.Printf("Nr nodes: %d\n", len(r.Nodes))
fmt.Printf("Nodes: %s\n", r.Nodes)