qm agent: pass command as second required argument

usage: qm agent <vmid> <command>
This commit is contained in:
Dietmar Maurer 2016-12-01 07:49:30 +01:00
parent 788a6a35da
commit ee2ff074b1

View File

@ -553,7 +553,7 @@ our $cmddef = {
monitor => [ __PACKAGE__, 'monitor', ['vmid']],
agent => [ "PVE::API2::Qemu", 'agent', ['vmid'],
agent => [ "PVE::API2::Qemu", 'agent', ['vmid', 'command'],
{ node => $nodename }, $print_agent_result ],
mtunnel => [ __PACKAGE__, 'mtunnel', []],