mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 03:15:21 +00:00
subscription: handle missing subscription info
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
dbfcac27d5
commit
25eaf729d7
@ -62,7 +62,7 @@ sub read_etc_subscription {
|
||||
|
||||
my $info = Proxmox::RS::Subscription::read_subscription($filename);
|
||||
|
||||
return $info if $info->{status} ne 'active';
|
||||
return $info if !$info || $info->{status} ne 'active';
|
||||
|
||||
my ($sockets, $level);
|
||||
eval { ($sockets, $level) = check_key($info->{key}, $req_sockets); };
|
||||
|
Loading…
Reference in New Issue
Block a user