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
|