I'm currently testing your patches,

I have an uninitialized value warning with no hardware map file

Le 25/08/22 à 11:24, Dominik Csapak a écrit :

> +sub read_hardware_map {
> +    my ($filename, $raw)  = @_;
> +
> +    my $digest = Digest::SHA::sha1_hex($raw);
> +


Use of uninitialized value in subroutine entry at 
/usr/share/perl5/PVE/HardwareMap.pm line 191.


> +    if (!defined($raw) || $raw eq '') {
> +     return {
> +         digest => $digest,
> +     };
> +    }
> +
> +    my $cfg = from_json($raw);
> +    check_config($cfg);
> +    $cfg->{digest} = $digest;
> +
> +    return $cfg;
> +}

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to