]> git.proxmox.com Git - pve-common.git/commitdiff
PVE/Subscription.pm - check if we have a key
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 3 Oct 2017 10:04:47 +0000 (12:04 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 3 Oct 2017 10:55:17 +0000 (12:55 +0200)
src/PVE/Subscription.pm

index 1fa933aa96ef173c0a18b1c6e0560fd9766a3d0f..15711524f570bb9bd5643a3de3463b55004d38ad 100644 (file)
@@ -154,7 +154,7 @@ sub read_subscription {
        $data .= $line;
     }
 
        $data .= $line;
     }
 
-    if ($csum && $data) {
+    if ($key && $csum && $data) {
 
        chomp $csum;
 
 
        chomp $csum;