chiark / gitweb /
machinectl: Check type instead of path before printing the type
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 2 Jan 2015 19:29:04 +0000 (20:29 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 2 Jan 2015 20:38:22 +0000 (21:38 +0100)
Looks like a typo when introduced in fefdc04b38725457a91651218feb7000f6ccc1f4

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)