Skip to content

Commit df4b12b

Browse files
martin-gpyigaw
authored andcommitted
netapp-ontapdev: add err msg for no ontapdevices
Print an error message if no ontapdevices on the host. Signed-off-by: Martin George <marting@netapp.com>
1 parent 818ce84 commit df4b12b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/netapp/netapp-nvme.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,8 @@ static int netapp_ontapdevices(int argc, char **argv, struct command *command,
844844
else if (fmt == NJSON)
845845
netapp_ontapdevices_print_json(ontapdevices,
846846
num_ontapdevices, devname);
847-
}
847+
} else
848+
fprintf(stderr, "No ontapdevices detected\n");
848849

849850
for (i = 0; i < num; i++)
850851
free(devices[i]);

0 commit comments

Comments
 (0)