From: Thomas Lamprecht Date: Mon, 30 Jul 2018 08:41:48 +0000 (+0200) Subject: api/agent: do not dereference params hash before passing to agent_cmd X-Git-Url: https://git.proxmox.com/?p=qemu-server.git;a=commitdiff_plain;h=50ecb1ba581d2bb9ea542f7ceb32cd49aeda1873 api/agent: do not dereference params hash before passing to agent_cmd Signed-off-by: Thomas Lamprecht --- diff --git a/PVE/API2/Qemu/Agent.pm b/PVE/API2/Qemu/Agent.pm index d985b70..0920e15 100644 --- a/PVE/API2/Qemu/Agent.pm +++ b/PVE/API2/Qemu/Agent.pm @@ -252,7 +252,7 @@ __PACKAGE__->register_method({ password => encode_base64($param->{password}), crypted => $crypted ? JSON::true : JSON::false, }; - my $res = agent_cmd($vmid, "set-user-password", %$args, 'cannot set user password'); + my $res = agent_cmd($vmid, "set-user-password", $args, 'cannot set user password'); return { result => $res }; }});