Hello community,

here is the log from the commit of package yast2-iscsi-client for 
openSUSE:Factory checked in at 2012-12-19 14:15:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-iscsi-client (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-iscsi-client.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-iscsi-client", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-iscsi-client/yast2-iscsi-client.changes    
2012-09-20 15:48:29.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-iscsi-client.new/yast2-iscsi-client.changes   
    2012-12-19 14:15:33.000000000 +0100
@@ -1,0 +2,7 @@
+Tue Dec 18 12:57:18 CET 2012 - [email protected]
+
+- version 2.23.0
+- do not write iscsi-client section to autoinst.xml if no iscsi 
+  targets are defined (bnc#792071)
+
+-------------------------------------------------------------------

Old:
----
  yast2-iscsi-client-2.22.2.tar.bz2

New:
----
  yast2-iscsi-client-2.23.0.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-iscsi-client.spec ++++++
--- /var/tmp/diff_new_pack.kXCTAg/_old  2012-12-19 14:15:34.000000000 +0100
+++ /var/tmp/diff_new_pack.kXCTAg/_new  2012-12-19 14:15:34.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-iscsi-client
-Version:        2.22.2
+Version:        2.23.0
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

++++++ yast2-iscsi-client-2.22.2.tar.bz2 -> yast2-iscsi-client-2.23.0.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-iscsi-client-2.22.2/VERSION 
new/yast2-iscsi-client-2.23.0/VERSION
--- old/yast2-iscsi-client-2.22.2/VERSION       2012-05-22 12:54:19.000000000 
+0200
+++ new/yast2-iscsi-client-2.23.0/VERSION       2012-12-18 13:14:44.000000000 
+0100
@@ -1 +1 @@
-2.22.2
+2.23.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-iscsi-client-2.22.2/src/IscsiClient.ycp 
new/yast2-iscsi-client-2.23.0/src/IscsiClient.ycp
--- old/yast2-iscsi-client-2.22.2/src/IscsiClient.ycp   2012-05-22 
12:54:19.000000000 +0200
+++ new/yast2-iscsi-client-2.23.0/src/IscsiClient.ycp   2012-12-18 
13:14:44.000000000 +0100
@@ -126,34 +126,42 @@
  * (For use by autoinstallation.)
  * @return map Dumped settings (later acceptable by Import ())
  */
-global map Export () {
- list tgets = [];
- foreach(string sess, IscsiClientLib::sessions, {
- list<string> sl = splitstring(sess, " ");
- string target = sl[1]:"";
- string portal = sl[0]:"";
- string iface = sl[2]:"default";
- IscsiClientLib::currentRecord = [portal, target, iface];
- map<string, any> auth = IscsiClientLib::getNode();
- map new_target =
-               $["target": target,
-               "portal"  : portal,
-               "iface"  : iface,
-               "startup" : IscsiClientLib::getStartupStatus(),
-               ];
- if (auth["authmethod"]:"None"=="None") new_target["authmethod"]="None";
-       else new_target = union(new_target, auth);
-  tgets = add(tgets, new_target);
- });
- IscsiClientLib::ay_settings = $[
-               "version" : "1.0",
-              "initiatorname" : IscsiClientLib::initiatorname,
-               "targets" : tgets
-                ];
-  configured = true;
-  modified = true;
- return IscsiClientLib::ay_settings;
-}
+global map Export() 
+    {
+    list tgets = [];
+    foreach(string sess, IscsiClientLib::sessions, 
+       {
+       list<string> sl = splitstring(sess, " ");
+       string target = sl[1]:"";
+       string portal = sl[0]:"";
+       string iface = sl[2]:"default";
+       IscsiClientLib::currentRecord = [portal, target, iface];
+       map<string, any> auth = IscsiClientLib::getNode();
+       map new_target =
+                   $["target": target,
+                     "portal"  : portal,
+                     "iface"  : iface,
+                     "startup" : IscsiClientLib::getStartupStatus(),
+                    ];
+       if (auth["authmethod"]:"None"=="None") 
+           new_target["authmethod"]="None";
+       else 
+           new_target = union(new_target, auth);
+       tgets = add(tgets, new_target);
+       });
+    IscsiClientLib::ay_settings = $[];
+    if( !isempty(tgets) )
+       {
+       IscsiClientLib::ay_settings = $[
+                      "version" : "1.0",
+                      "initiatorname" : IscsiClientLib::initiatorname,
+                      "targets" : tgets
+                       ];
+       configured = true;
+       modified = true;
+       }
+    return IscsiClientLib::ay_settings;
+    }
 
 /**
  * Read all iscsi-client settings

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to