[PATCH rhel6-branch] Generate kickstart fcoe commands for devices added in UI (#813998)

Radek Vykydal rvykydal at redhat.com
Tue Dec 4 11:52:41 UTC 2012


I was updating the ksnics only for devices added by kickstart,
but we want to generate the commands also for devices added in UI.

Related: rhbz#813998
---
 iw/advanced_storage.py  |    4 +++-
 textw/add_drive_text.py |    1 +
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/iw/advanced_storage.py b/iw/advanced_storage.py
index 35a2095..cc1b23a 100644
--- a/iw/advanced_storage.py
+++ b/iw/advanced_storage.py
@@ -388,10 +388,12 @@ def addFcoeDrive(anaconda):
             continue
 
         try:
-            anaconda.id.storage.fcoe.addSan(store.get_value(iter, 1),
+            nic = store.get_value(iter, 1)
+            anaconda.id.storage.fcoe.addSan(nic,
                                             dcb=dcb_cb.get_active(),
                                             auto_vlan=auto_vlan_cb.get_active(),
                                             intf=anaconda.intf)
+            anaconda.id.storage.fcoe.ksnics.append(nic)
         except IOError as e:
             anaconda.intf.messageWindow(_("Error"), str(e))
             rc = gtk.RESPONSE_CANCEL
diff --git a/textw/add_drive_text.py b/textw/add_drive_text.py
index 9a7ad83..35ce419 100644
--- a/textw/add_drive_text.py
+++ b/textw/add_drive_text.py
@@ -412,6 +412,7 @@ class addDriveDialog(object):
 
         storage.fcoe.fcoe().addSan(nic=nic, dcb=dcb, auto_vlan=auto_vlan,
                                    intf=self.anaconda.intf)
+        storage.fcoe.fcoe().ksnics.append(nic)
 
         screen.popWindow()
         return INSTALL_OK
-- 
1.7.4



More information about the anaconda-patches mailing list