[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-livecd-list] imgcreate/kickstart.py



 imgcreate/kickstart.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b98ad7391cef406967636f4fba7e3d5d2602e83f
Author: Alan Pevec <apevec redhat com>
Date:   Sun Dec 7 22:08:01 2008 +0100

    fix device command version check
    
    F8_Device is a FC3_Device subclass, so isinstance was always true
    
    Signed-off-by: Alan Pevec <apevec redhat com>

diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 58171c4..253d349 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -450,7 +450,7 @@ def get_image_fstype(ks, default = None):
 
 def get_modules(ks):
     devices = []
-    if isinstance(ks.handler.device, kscommands.device.FC3_Device):
+    if not hasattr(ks.handler.device, "deviceList"):
         devices.append(ks.handler.device)
     else:
         devices.extend(ks.handler.device.deviceList)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]