]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: move version command to host group
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 27 Dec 2011 08:59:45 +0000 (16:59 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 28 Dec 2011 12:18:51 +0000 (05:18 -0700)
Trivial patch, move version command to host commands group.

It has no any related with any domain.

It may connect to the daemon, so the flag is 0 but not VSH_CMD_FLAG_NOCONNECT.

tools/virsh.c

index 02f2e0d1ca8e37f26f249b3303d214c903071e6a..b2d3968d785a450b9f9720e21e1720038bb633b2 100644 (file)
@@ -15641,7 +15641,6 @@ static const vshCmdDef domManagementCmds[] = {
     {"vcpucount", cmdVcpucount, opts_vcpucount, info_vcpucount, 0},
     {"vcpuinfo", cmdVcpuinfo, opts_vcpuinfo, info_vcpuinfo, 0},
     {"vcpupin", cmdVcpuPin, opts_vcpupin, info_vcpupin, 0},
-    {"version", cmdVersion, opts_version, info_version, 0},
     {"vncdisplay", cmdVNCDisplay, opts_vncdisplay, info_vncdisplay, 0},
     {NULL, NULL, NULL, NULL, 0}
 };
@@ -15856,6 +15855,7 @@ static const vshCmdDef hostAndHypervisorCmds[] = {
      info_qemu_monitor_command, 0},
     {"sysinfo", cmdSysinfo, NULL, info_sysinfo, 0},
     {"uri", cmdURI, NULL, info_uri, 0},
+    {"version", cmdVersion, opts_version, info_version, 0},
     {NULL, NULL, NULL, NULL, 0}
 };