api/agent: do not dereference params hash before passing to agent_cmd

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-07-30 10:41:48 +02:00
parent 4c4622a880
commit 50ecb1ba58

View 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 };
}});