Ondřej Svoboda has uploaded a new change for review.

Change subject: ipwrapper: Test against the correct value of variable 'family'
......................................................................

ipwrapper: Test against the correct value of variable 'family'

Change-Id: I7f60f32a09d92ad7ee39bf343e4331bd3e43a14b
Signed-off-by: Ondřej Svoboda <[email protected]>
Fixes: I5708c4db6f6d450536bd243a0475164b89f46f93
---
M lib/vdsm/ipwrapper.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/68/32168/1

diff --git a/lib/vdsm/ipwrapper.py b/lib/vdsm/ipwrapper.py
index af31159..0402f5c 100644
--- a/lib/vdsm/ipwrapper.py
+++ b/lib/vdsm/ipwrapper.py
@@ -566,7 +566,7 @@
     """
     family = ['-%s' % family] if family in (4, 6) else []
     command = [_IP_BINARY.cmd] + family + ['addr', 'flush', 'dev', dev]
-    if family == 6:
+    if family == ['-6']:
         command += ['scope', 'global']
     _execCmd(command)
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f60f32a09d92ad7ee39bf343e4331bd3e43a14b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ondřej Svoboda <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to