You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by da...@apache.org on 2018/04/18 13:10:51 UTC

[trafficserver] branch master updated: Corrects boolean argument validation/error message

This is an automated email from the ASF dual-hosted git repository.

dagit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 87950ab  Corrects boolean argument validation/error message
87950ab is described below

commit 87950ab981d09e0cc02f8df52e3e934b6bbba6b6
Author: Derek Dagit <de...@oath.com>
AuthorDate: Tue Apr 17 16:25:57 2018 +0000

    Corrects boolean argument validation/error message
---
 tests/tools/microServer/uWServer.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/tools/microServer/uWServer.py b/tests/tools/microServer/uWServer.py
index 0edbb73..82898ac 100644
--- a/tests/tools/microServer/uWServer.py
+++ b/tests/tools/microServer/uWServer.py
@@ -594,13 +594,13 @@ def _bool(arg):
     elif tmp in opt_false_values:
         return False
     else:
-        msg = 'Invalid value Boolean value : "{0}"\n Valid options are {0}'.format(arg,
+        msg = 'Invalid value Boolean value : "{0}"\n Valid options are {1}'.format(arg,
                                                                                    opt_true_values | opt_false_values)
         raise ValueError(msg)
 
-def _argparse_bool():
+def _argparse_bool(arg):
     try:
-        _bool
+        _bool(arg)
     except ValueError as ve:
         raise argparse.ArgumentTypeError(ve)
 

-- 
To stop receiving notification emails like this one, please contact
dagit@apache.org.