[pve-devel] applied: [PATCH qemu-server v2 2/2] qm: move 'agent' command into 'guest' comand group

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jul 17 11:46:18 CEST 2018


On 7/12/18 2:49 PM, Thomas Lamprecht wrote:
> with a backwards compatible alias
> 
> Signed-off-by: Thomas Lamprecht <t.lamprecht at 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 76fda4d..f2b39ff 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 => '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],
> 

applied




More information about the pve-devel mailing list