]> git.proxmox.com Git - qemu-server.git/commitdiff
api/agent: do not dereference params hash before passing to agent_cmd
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 30 Jul 2018 08:41:48 +0000 (10:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 30 Jul 2018 08:41:48 +0000 (10:41 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu/Agent.pm

index d985b70f37999d7acf2ffe24b5d57ad9696ad0ab..0920e15ed66eb4b99de0fa2ce94b17b9b8d727f2 100644 (file)
@@ -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 };
     }});