From 26136e3b86f5eaf1018252cee8c6ab7df24b0832 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 7 Jul 2021 16:29:29 -0500 Subject: [PATCH] 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 Reviewed-by: Shalini Chellathurai Saroja Reviewed-by: Michal Privoznik --- tools/virsh-nodedev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-nodedev.c b/tools/virsh-nodedev.c index 8c2086b71f..5b1afe4601 100644 --- a/tools/virsh-nodedev.c +++ b/tools/virsh-nodedev.c @@ -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; } -- 2.47.2