virsh: allow nodedev-list --all --tree

Allow the tree view with --all so that we can see all inactive mdevs in
a tree structure nested under their parent devices.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Jonathon Jongsma authored and Michal Privoznik committed 2021-07-19 11:32:12 +02:00
1 parent 51fbbfdce8
commit 26136e3b86
1 file changed
+2 -2
+2 -2
View File
@@ -428,8 +428,8 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
return false;
}
if (tree && (cap_str || inactive || all)) {
vshError(ctl, "%s", _("Option --tree is incompatible with other options"));
if (tree && (cap_str || inactive)) {
vshError(ctl, "%s", _("Option --tree is incompatible with --cap and --inactive"));
return false;
}