Re: [PATCH rhel6-branch] Fix traceback of network --device=<MAC> (#694768)

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

 



This version will even prevent traceback if getMacAddress
returns None. Not directly related to the BZ, but related
to its mother:  https://bugzilla.redhat.com/show_bug.cgi?id=690589
Quite a corner case, but I'd like to sneak it in. And improve
getMacAddress in master - returning None, False, and string
seems crazy.


>From 8ab6a9218f4fc68c558c4258a5cef85266770efe Mon Sep 17 00:00:00 2001
From: Radek Vykydal <rvykydal@xxxxxxxxxx>
Date: Fri, 8 Apr 2011 12:48:42 +0200
Subject: [PATCH rhel6-branch] Fix traceback of network --device=<MAC> (#694768)

Resolves: rhbz#694768
---
 kickstart.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index e196dcb..18cc978 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -587,8 +587,8 @@ class NetworkData(commands.network.RHEL6_NetworkData):
             dev = devices[device]
         else:
             for devname in devices:
-                if isys.getMacAddress(devname).lower() == device.lower():
-                    dev = val
+                if isys.getMacAddress(devname) == device.upper():
+                    dev = devices[devname]
                     break
 
         if self.hostname != "":
-- 
1.7.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux