[tor-commits] [oonib/master] Do not do insane validation of test_version.

art at torproject.org art at torproject.org
Fri Jun 7 23:24:06 UTC 2013


commit 28223e9c6add53325ee38cec70857bea10178ff6
Author: Arturo Filastò <art at fuffa.org>
Date:   Thu Jun 6 23:25:32 2013 +0200

    Do not do insane validation of test_version.
---
 bin/archive_oonib_reports |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/archive_oonib_reports b/bin/archive_oonib_reports
index d8c1394..0fe6c5f 100755
--- a/bin/archive_oonib_reports
+++ b/bin/archive_oonib_reports
@@ -18,7 +18,6 @@ from oonib import log
 report_age = 1 # hours
 report_archive_dir = '/var/spool/mlab_ooni/archived'
 report_source_dir = '/var/spool/mlab_ooni'
-valid_test_versions = ['0.1', '0.1.1', '0.4', '0.1.3']
 default_probe_cc = '??'
 target_permission = 0444
 path_permission = 0755
@@ -43,7 +42,7 @@ def validate_fields(fields):
     log.debug("Report fields are: %s" % fields)
 
     # check report version
-    if fields['test_version'] not in valid_test_versions:
+    if 'test_version' not in fields:
         raise InvalidReportField('test_version')
 
     # check report CC





More information about the tor-commits mailing list