lyt_yudi
2018-07-30 09:54:54 UTC
Hi
Thanks
Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.
# pvesh create nodes/localhost/qemu/131/agent/set-user-password --password test123456 --username root --crypted 0
Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.
Ah, yes, I found the issue and pushed a fix. Much thanks for the report.Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.
-use PVE::QemuServer::Agent qw(agent_available agent_cmd);
+use PVE::QemuServer::Agent qw(agent_available agent_cmd check_agent_error);
use MIME::Base64 qw(encode_base64 decode_base64);
use JSON;
# pvesh create nodes/localhost/qemu/131/agent/set-user-password --password test123456 --username root --crypted 0+use PVE::QemuServer::Agent qw(agent_available agent_cmd check_agent_error);
use MIME::Base64 qw(encode_base64 decode_base64);
use JSON;
Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.