[pve-devel] r6360 - in pve-storage/pve2: . PVE/API2/Storage

svn-commits at proxmox.com svn-commits at proxmox.com
Tue Jul 26 07:09:16 CEST 2011


Author: dietmar
Date: 2011-07-26 07:09:16 +0200 (Tue, 26 Jul 2011)
New Revision: 6360

Modified:
   pve-storage/pve2/ChangeLog
   pve-storage/pve2/PVE/API2/Storage/Scan.pm
Log:
rename 'server' to 'portal'


Modified: pve-storage/pve2/ChangeLog
===================================================================
--- pve-storage/pve2/ChangeLog	2011-07-25 11:47:49 UTC (rev 6359)
+++ pve-storage/pve2/ChangeLog	2011-07-26 05:09:16 UTC (rev 6360)
@@ -1,3 +1,7 @@
+2011-07-26  Proxmox Support Team  <support at proxmox.com>
+
+	* PVE/API2/Storage/Scan.pm (iscsiscan): rename 'server' to 'portal'
+
 2010-11-08  Proxmox Support Team  <support at proxmox.com>
 
 	* Storage.pm (iscsi_login): multipath fixes: try to log in to all

Modified: pve-storage/pve2/PVE/API2/Storage/Scan.pm
===================================================================
--- pve-storage/pve2/PVE/API2/Storage/Scan.pm	2011-07-25 11:47:49 UTC (rev 6359)
+++ pve-storage/pve2/PVE/API2/Storage/Scan.pm	2011-07-26 05:09:16 UTC (rev 6360)
@@ -91,7 +91,7 @@
     	additionalProperties => 0,
 	properties => {
 	    node => get_standard_option('pve-node'),
-	    server => { type => 'string', format => 'pve-storage-server' },
+	    portal => { type => 'string', format => 'pve-storage-server' },
 	},
     },
     returns => {
@@ -107,8 +107,8 @@
     code => sub {
 	my ($param) = @_;
 
-	my $server = $param->{server};
-	my $res = PVE::Storage::scan_iscsi ($server);
+	my $portal = $param->{portal};
+	my $res = PVE::Storage::scan_iscsi($portal);
 
 	my $data = [];
 	foreach my $k (keys %$res) {




More information about the pve-devel mailing list