Merge pull request #560 from hangtwenty/dummyproof-cli-param-verify

Add --verify=(true|false) as an alternative to (yes|no) and make the boolean value case-insensitive
This commit is contained in:
Jakub Roztocil 2017-02-17 00:43:22 +01:00 committed by GitHub
commit cf8d5eb3e8

View File

@ -159,8 +159,10 @@ def get_requests_kwargs(args, base_headers=None):
'data': data,
'verify': {
'yes': True,
'no': False
}.get(args.verify, args.verify),
'true': True,
'no': False,
'false': False,
}.get(args.verify.lower(), args.verify),
'cert': cert,
'timeout': args.timeout,
'auth': args.auth,