Storage::get_bandwidth_limit: fix if condition
Passing 'undef' as '$storage_list' led to a warning about using an uninitialized value as array_ref. Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
3d277fe6ac
commit
074bdd354f
@ -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
|
||||
|
||||
Reference in New Issue
Block a user