mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 23:10:08 +00:00
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:
parent
51fbbfdce8
commit
26136e3b86
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user