Signed-off-by: Thomas Lamprecht <t.lampre...@proxmox.com>
---
 PVE/CLI/qm.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm
index e44698d..bdcbca9 100755
--- a/PVE/CLI/qm.pm
+++ b/PVE/CLI/qm.pm
@@ -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 => 'ga cmd' },
 
     ga => {
+       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],
-- 
2.18.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to