]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
Storage::get_bandwidth_limit: fix if condition
[pve-storage.git] / PVE / Storage.pm
index 6ad88d3d41b92b9a975a91d8b89af3578a78c0c1..0559538f1813966f90fcb7a5a5653aafdbe8a203 100755 (executable)
@@ -1635,7 +1635,7 @@ sub get_bandwidth_limit {
     }
 
     # Apply per-storage limits - if there are storages involved.
-    if (@$storage_list) {
+    if (defined($storage_list) && @$storage_list) {
        my $config = config();
 
        # The Datastore.Allocate permission allows us to modify the per-storage