[node-patches] Change in ovirt-node[master]: Fix: Look at all NICs

fabiand at fedoraproject.org fabiand at fedoraproject.org
Wed Apr 24 14:41:32 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: Fix: Look at all NICs
......................................................................

Fix: Look at all NICs

Change-Id: I6fd0080421ad434797316c0f5b91ae566759de68
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirtnode/network.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/11/14211/1

diff --git a/src/ovirtnode/network.py b/src/ovirtnode/network.py
index fa65f46..5365999 100644
--- a/src/ovirtnode/network.py
+++ b/src/ovirtnode/network.py
@@ -409,7 +409,7 @@
             _functions.system_closefds("service ntpd stop &> /dev/null")
             # XXX eth assumed in breth
             brctl_cmd = "ip --details --oneline link " \
-                "| awk -F':' 'NR>1 && /^[0-9]: br[ep]/ {print $2}'"
+                "| awk -F':' '/^[0-9]: br[ep]/ {print $2}'"
             brctl = _functions.subprocess_closefds(brctl_cmd, shell=True,
                                                    stdout=subprocess.PIPE,
                                         stderr=subprocess.STDOUT)


--
To view, visit http://gerrit.ovirt.org/14211
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fd0080421ad434797316c0f5b91ae566759de68
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list