[tor-commits] [oonib/master] Make validateNettest work like validateInputHash. Previously the code was clearly redundant and thus probably wrong.
art at torproject.org
art at torproject.org
Wed Apr 23 14:31:51 UTC 2014
commit b8b81deba021d5f103e50e3cf2c259234ce79bad
Author: Darius Bacon <darius at wry.me>
Date: Fri Mar 28 11:33:03 2014 -0700
Make validateNettest work like validateInputHash. Previously the code was clearly redundant and thus probably wrong.
---
oonib/policy/handlers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/oonib/policy/handlers.py b/oonib/policy/handlers.py
index 913aeb1..83a7f24 100644
--- a/oonib/policy/handlers.py
+++ b/oonib/policy/handlers.py
@@ -34,7 +34,7 @@ class Policy(object):
def validateNettest(self, nettest_name):
# XXX add support for version checking too.
valid = False
- if self.nettest:
+ if not self.nettest:
valid = True
for nt in self.nettest:
if nettest_name == nt['name']:
More information about the tor-commits
mailing list