[pve-devel] r6338 - in pve-manager/pve2: . lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jul 21 08:19:34 CEST 2011


Author: dietmar
Date: 2011-07-21 08:19:34 +0200 (Thu, 21 Jul 2011)
New Revision: 6338

Modified:
   pve-manager/pve2/ChangeLog
   pve-manager/pve2/lib/PVE/API2/Cluster.pm
Log:
do not list disabled storages


Modified: pve-manager/pve2/ChangeLog
===================================================================
--- pve-manager/pve2/ChangeLog	2011-07-21 06:12:02 UTC (rev 6337)
+++ pve-manager/pve2/ChangeLog	2011-07-21 06:19:34 UTC (rev 6338)
@@ -1,5 +1,7 @@
 2011-07-21  Proxmox Support Team  <support at proxmox.com>
 
+	* lib/PVE/API2/Cluster.pm (resources): do not list disabled storages
+
 	* www/manager/qemu/CreateWizard.js: allow to select HD device 
 
 	* www/manager/window/Edit.js: always mark invalid fields

Modified: pve-manager/pve2/lib/PVE/API2/Cluster.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/Cluster.pm	2011-07-21 06:12:02 UTC (rev 6337)
+++ pve-manager/pve2/lib/PVE/API2/Cluster.pm	2011-07-21 06:19:34 UTC (rev 6338)
@@ -191,7 +191,7 @@
 
 	foreach my $storeid (@sids) {
 	    my $scfg =  PVE::Storage::storage_config ($cfg, $storeid);
-
+	    next if $scfg->{disable};
 	    next if !$rpcenv->check($user, "/storage/$storeid", [ 'Datastore.Audit' ]);
 	    # we create a entry for each node
 	    foreach my $node (@$nodes) {




More information about the pve-devel mailing list