chiark / gitweb /
machinectl: Check type instead of path before printing the type
[elogind.git] / src / machine / machinectl.c
index b1d170787b28c5c2f121f7491579b8ccda6e216c..37f6027ada067979b7e354d80f5716a04d2a33d7 100644 (file)
@@ -679,7 +679,7 @@ static void print_image_status_info(sd_bus *bus, ImageStatusInfo *i) {
                 putchar('\n');
         }
 
-        if (i->path)
+        if (i->type)
                 printf("\t    Type: %s\n", i->type);
 
         if (i->path)