FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 04-08-2011, 11:56 AM
Radek Vykydal
 
Default Fix traceback of network --device= (#694768)

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@redhat.com>
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 04-11-2011, 06:15 PM
"Brian C. Lane"
 
Default Fix traceback of network --device= (#694768)

On Fri, Apr 08, 2011 at 01:56:40PM +0200, Radek Vykydal wrote:
> 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.
>
>

Ack

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org