complete_storage: correctly pass storage config to storage_ids()

This commit is contained in:
Dietmar Maurer
2015-10-01 06:26:35 +02:00
parent ba0cf557f4
commit 180c8b020c

View File

@ -1172,7 +1172,9 @@ sub foreach_volid {
sub complete_storage {
my ($cmdname, $pname, $cvalue) = @_;
return $cmdname eq 'add' ? [] : [ PVE::Storage::storage_ids() ];
my $cfg = PVE::Storage::config();
return $cmdname eq 'add' ? [] : [ PVE::Storage::storage_ids($cfg) ];
}
sub complete_storage_enabled {