mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
test/infamy: Fix incorrect call when bailing out of MACVLAN creation
We're calling the bound instance of __exit__, so `self` is superfluous.
This commit is contained in:
committed by
Joachim Wiberg
parent
723c325b0d
commit
7eb2269972
@@ -22,14 +22,14 @@ class IsolatedMacVlan:
|
||||
done
|
||||
""")
|
||||
except Exception as e:
|
||||
self.__exit__(self, None, None, None)
|
||||
self.__exit__(None, None, None)
|
||||
raise e
|
||||
|
||||
if self.lo:
|
||||
try:
|
||||
self.run(["ip", "link", "set", "dev", "lo", "up"])
|
||||
except Exception as e:
|
||||
self.__exit__(self, None, None, None)
|
||||
self.__exit__(None, None, None)
|
||||
raise e
|
||||
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user