mirror of
git://git.proxmox.com/git/pve-apiclient.git
synced 2025-01-03 05:17:58 +03:00
use two-argument bless
else we'd break "inheriting" (or whatever perl does is called) to child modules > Never use the one-argument form of bless. -- Perl Best Practices, Pg. 365 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
935bbf68ba
commit
38fbee3cdd
@ -317,7 +317,7 @@ sub new {
|
||||
register_fingerprint_cb => $param{register_fingerprint_cb},
|
||||
timeout => $param{timeout} || 60,
|
||||
};
|
||||
bless $self;
|
||||
bless $self, $class;
|
||||
|
||||
if (!$ssl_opts->{SSL_verify_callback}) {
|
||||
$ssl_opts->{'SSL_verify_mode'} = SSL_VERIFY_PEER;
|
||||
|
Loading…
Reference in New Issue
Block a user