]> git.proxmox.com Git - qemu-server.git/commitdiff
qm: move 'agent' command into 'guest' comand group
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Jul 2018 11:27:51 +0000 (13:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Jul 2018 09:01:55 +0000 (11:01 +0200)
with a backwards compatible alias

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/qm.pm

index 76fda4dc5aae83a412a233160a823f3705b50369..f2b39ff9dc702aaa3dd1b8d4ac6112a8baaa7821 100755 (executable)
@@ -884,10 +884,10 @@ our $cmddef = {
 
     monitor  => [ __PACKAGE__, 'monitor', ['vmid']],
 
-    agent  => [ "PVE::API2::Qemu::Agent", 'agent', ['vmid', 'command'],
-               { node => $nodename }, $print_agent_result ],
+    agent  => { alias => 'guest cmd' },
 
     guest => {
+       cmd  => [ "PVE::API2::Qemu::Agent", 'agent', ['vmid', 'command'], { node => $nodename }, $print_agent_result ],
        passwd => [ "PVE::API2::Qemu::Agent", 'set-user-password', [ 'vmid', 'username' ], { node => $nodename }],
        exec => [ __PACKAGE__, 'exec', [ 'vmid', 'extra-args' ], { node => $nodename }, $print_agent_result],
        'exec-status' => [ "PVE::API2::Qemu::Agent", 'exec-status', [ 'vmid', 'pid' ], { node => $nodename }, $print_agent_result],