Mailinglist Archive: yast-commit (2113 mails)

< Previous Next >
[yast-commit] r58812 - in /trunk/iscsi-client: VERSION package/yast2-iscsi-client.changes src/IscsiClientLib.ycp
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Tue, 29 Sep 2009 14:23:18 -0000
  • Message-id: <E1Msdbq-0000Uo-5S@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Tue Sep 29 16:23:17 2009
New Revision: 58812

URL: http://svn.opensuse.org/viewcvs/yast?rev=58812&view=rev
Log:
L3: safely parse iBFT values (bnc#541400)

Modified:
trunk/iscsi-client/VERSION
trunk/iscsi-client/package/yast2-iscsi-client.changes
trunk/iscsi-client/src/IscsiClientLib.ycp

Modified: trunk/iscsi-client/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-client/VERSION?rev=58812&r1=58811&r2=58812&view=diff
==============================================================================
--- trunk/iscsi-client/VERSION (original)
+++ trunk/iscsi-client/VERSION Tue Sep 29 16:23:17 2009
@@ -1 +1 @@
-2.18.8
+2.18.9

Modified: trunk/iscsi-client/package/yast2-iscsi-client.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-client/package/yast2-iscsi-client.changes?rev=58812&r1=58811&r2=58812&view=diff
==============================================================================
--- trunk/iscsi-client/package/yast2-iscsi-client.changes (original)
+++ trunk/iscsi-client/package/yast2-iscsi-client.changes Tue Sep 29 16:23:17
2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Sep 29 16:22:58 CEST 2009 - mzugec@xxxxxxx
+
+- L3: safely parse iBFT values (bnc#541400)
+- 2.18.9
+
+-------------------------------------------------------------------
Fri May 29 11:43:21 CEST 2009 - mzugec@xxxxxxx

- startup options documented in helptext (bnc#507004)

Modified: trunk/iscsi-client/src/IscsiClientLib.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/iscsi-client/src/IscsiClientLib.ycp?rev=58812&r1=58811&r2=58812&view=diff
==============================================================================
--- trunk/iscsi-client/src/IscsiClientLib.ycp (original)
+++ trunk/iscsi-client/src/IscsiClientLib.ycp Tue Sep 29 16:23:17 2009
@@ -8,6 +8,7 @@
import "Stage";
import "ModuleLoading";
import "Mode";
+import "String";

global list <string> sessions = [];
global list <string> discovered = [];
@@ -47,7 +48,9 @@
string from_bios = ((map<string, any>)SCR::Execute(.target.bash_output,
"iscsiadm -m fw"))["stdout"]:"";
foreach(string row, splitstring(from_bios, "\n"), {
list<string> key_val=splitstring(row, "=");
- if (size(key_val[0]:"")>0) ibft[key_val[0]:""] = key_val[1]:"";
+// if (size(key_val[0]:"")>0) ibft[key_val[0]:""] = key_val[1]:"";
+ string kv = String::CutBlanks(key_val[0]:"");
+ if (size(kv) > 0) ibft[kv] = String::CutBlanks(key_val[1]:"");
});
}
y2milestone("iBFT %1", hidePassword(ibft));

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages