]> git.proxmox.com Git - pve-storage.git/commitdiff
complete_storage: correctly pass storage config to storage_ids()
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 1 Oct 2015 04:26:35 +0000 (06:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 1 Oct 2015 04:26:35 +0000 (06:26 +0200)
PVE/Storage.pm

index c27e9cf30ecbae65523ef4e81a9a2192d272a25c..85f2d9dcd6b74a7c955ebd77051342f8ad27b6ba 100755 (executable)
@@ -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 {