[libvirt] [PATCH 2/9] virsh: Only return active domain names for 'reset' command

Lin Ma lma at suse.com
Tue May 15 11:10:33 UTC 2018


Signed-off-by: Lin Ma <lma at suse.com>
---
 tools/virsh-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index cfeb3484e2..724871d648 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -5892,7 +5892,7 @@ static const vshCmdInfo info_reset[] = {
 };
 
 static const vshCmdOptDef opts_reset[] = {
-    VIRSH_COMMON_OPT_DOMAIN_FULL(0),
+    VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
     {.name = NULL}
 };
 
-- 
2.16.2




More information about the libvir-list mailing list