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

Change subject: tests: Fix AttributeError: 'module' object has no attribute 
'ifcfg'
......................................................................

tests: Fix AttributeError: 'module' object has no attribute 'ifcfg'

This allows running NOSE_EXCLUDE='.*' make rpm on Fedora 20 again.

Change-Id: Ibe715c9f4c0f6b2b832f897467ba551416c52432
Signed-off-by: Ondřej Svoboda <[email protected]>
---
M tests/configNetworkTests.py
1 file changed, 4 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/08/31108/1

diff --git a/tests/configNetworkTests.py b/tests/configNetworkTests.py
index 83a4b73..afeaa65 100644
--- a/tests/configNetworkTests.py
+++ b/tests/configNetworkTests.py
@@ -25,8 +25,9 @@
 from testlib import VdsmTestCase as TestCaseBase
 from monkeypatch import MonkeyPatch
 
-from network import api, configurators
+from network import api
 from network import errors
+from network.configurators import ifcfg
 from network.models import Bond, Bridge, Nic, Vlan
 
 
@@ -51,10 +52,8 @@
     @MonkeyPatch(netinfo, 'networks', _fakeNetworks)
     @MonkeyPatch(netinfo, 'getMaxMtu', lambda *x: 1500)
     @MonkeyPatch(netinfo, 'getMtu', lambda *x: 1500)
-    @MonkeyPatch(configurators.ifcfg, 'ifdown', lambda *x:
-                 _raiseInvalidOpException())
-    @MonkeyPatch(configurators.ifcfg, 'ifup',
-                 lambda *x: _raiseInvalidOpException())
+    @MonkeyPatch(ifcfg, 'ifdown', lambda *x: _raiseInvalidOpException())
+    @MonkeyPatch(ifcfg, 'ifup', lambda *x: _raiseInvalidOpException())
     @MonkeyPatch(Bond, 'configure', lambda *x: _raiseInvalidOpException())
     @MonkeyPatch(Bridge, 'configure', lambda *x: _raiseInvalidOpException())
     @MonkeyPatch(Nic, 'configure', lambda *x: _raiseInvalidOpException())


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe715c9f4c0f6b2b832f897467ba551416c52432
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