Discussion:
[PVE-User] [pve-devel] applied: [PATCH qemu-server] agent: import used check_agent_error method
lyt_yudi
2018-07-30 09:54:54 UTC
Permalink
Hi
# 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.
Thanks
-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
Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.
lyt_yudi
2018-07-30 09:57:31 UTC
Permalink
sorry, got it

It’s fixed!
Post by lyt_yudi
Hi
# 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.
Thanks
-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
Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Thomas Lamprecht
2018-07-30 10:03:35 UTC
Permalink
Post by lyt_yudi
sorry, got it
It’s fixed!
great, thanks for reporting and testing again!
Post by lyt_yudi
Post by lyt_yudi
Hi
# 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.
Thanks
-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
Can't use string ("password") as a HASH ref while "strict refs" in use at /usr/share/perl5/PVE/QemuServer/Agent.pm line 62.
_______________________________________________
pve-user mailing list
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
Loading...