[libvirt] [PATCH 1/9] virsh: Remove 'id' text from help message for 'domrename' command

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


The inactive domains don't have any ID identifier, So adjust the help
message.

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

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 30da953446..cfeb3484e2 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -10251,7 +10251,8 @@ static const vshCmdInfo info_domrename[] = {
 };
 
 static const vshCmdOptDef opts_domrename[] = {
-    VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_INACTIVE),
+    VIRSH_COMMON_OPT_DOMAIN(N_("domain name or uuid"),
+                            VIR_CONNECT_LIST_DOMAINS_INACTIVE),
     {.name = "new-name",
      .type = VSH_OT_DATA,
      .flags = VSH_OFLAG_REQ,
-- 
2.16.2




More information about the libvir-list mailing list