Mailinglist Archive: yast-commit (2113 mails)

< Previous Next >
[yast-commit] r58827 - in /branches/SuSE-Code-11-SP1-Branch/iscsi-client: VERSION package/yast2-iscsi-client.changes src/IscsiClientLib.ycp
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Wed, 30 Sep 2009 09:18:42 -0000
  • Message-id: <E1MsvKc-00006h-Nr@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Wed Sep 30 11:18:42 2009
New Revision: 58827

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

Modified:
branches/SuSE-Code-11-SP1-Branch/iscsi-client/VERSION

branches/SuSE-Code-11-SP1-Branch/iscsi-client/package/yast2-iscsi-client.changes
branches/SuSE-Code-11-SP1-Branch/iscsi-client/src/IscsiClientLib.ycp

Modified: branches/SuSE-Code-11-SP1-Branch/iscsi-client/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/iscsi-client/VERSION?rev=58827&r1=58826&r2=58827&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/iscsi-client/VERSION (original)
+++ branches/SuSE-Code-11-SP1-Branch/iscsi-client/VERSION Wed Sep 30 11:18:42
2009
@@ -1 +1 @@
-2.17.14
+2.17.15

Modified:
branches/SuSE-Code-11-SP1-Branch/iscsi-client/package/yast2-iscsi-client.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/iscsi-client/package/yast2-iscsi-client.changes?rev=58827&r1=58826&r2=58827&view=diff
==============================================================================
---
branches/SuSE-Code-11-SP1-Branch/iscsi-client/package/yast2-iscsi-client.changes
(original)
+++
branches/SuSE-Code-11-SP1-Branch/iscsi-client/package/yast2-iscsi-client.changes
Wed Sep 30 11:18:42 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Sep 29 16:21:36 CEST 2009 - mzugec@xxxxxxx
+
+- L3: safely parse iBFT values (bnc#541400)
+- 2.17.15
+
+-------------------------------------------------------------------
Fri May 29 13:54:42 CEST 2009 - mzugec@xxxxxxx

- startup options documented in helptext (bnc#507004)

Modified: branches/SuSE-Code-11-SP1-Branch/iscsi-client/src/IscsiClientLib.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/iscsi-client/src/IscsiClientLib.ycp?rev=58827&r1=58826&r2=58827&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/iscsi-client/src/IscsiClientLib.ycp
(original)
+++ branches/SuSE-Code-11-SP1-Branch/iscsi-client/src/IscsiClientLib.ycp Wed
Sep 30 11:18:42 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