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 03-12-2012, 09:20 AM
Martin Gracik
 
Default Use netdevices.items() to unpack values (#802222)

---
network.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/network.py b/network.py
index 0411dd8..8940534 100644
--- a/network.py
+++ b/network.py
@@ -620,7 +620,7 @@ class Network:

def hasActiveIPoIBDevice(self):
active_devs = getActiveNetDevs()
- for devName, device in self.netdevices:
+ for devName, device in self.netdevices.items():
if (devName in active_devs and
device.get('TYPE') == 'Infiniband'):
return True
--
1.7.5.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-12-2012, 11:14 AM
Vratislav Podzimek
 
Default Use netdevices.items() to unpack values (#802222)

Ack.

On Mon, 2012-03-12 at 11:20 +0100, Martin Gracik wrote:
> ---
> network.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/network.py b/network.py
> index 0411dd8..8940534 100644
> --- a/network.py
> +++ b/network.py
> @@ -620,7 +620,7 @@ class Network:
>
> def hasActiveIPoIBDevice(self):
> active_devs = getActiveNetDevs()
> - for devName, device in self.netdevices:
> + for devName, device in self.netdevices.items():
> if (devName in active_devs and
> device.get('TYPE') == 'Infiniband'):
> return True

--
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic

_______________________________________________
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 09:46 AM.

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