From 3122beac1deacc029aec0197584527b0c95b141c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Vonheiden?= <bjoern.vonheiden@hotmail.de> Date: Wed, 2 Dec 2020 14:41:41 +0100 Subject: [PATCH] enable more safer passing of env variable domain restriction --- execution/lib/cli_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution/lib/cli_parser.py b/execution/lib/cli_parser.py index 75a1e3ae5..afa164322 100644 --- a/execution/lib/cli_parser.py +++ b/execution/lib/cli_parser.py @@ -125,8 +125,8 @@ def benchmark_parser(description): help='[mandatory] List of instances used in benchmarks') parser.add_argument('--domain-restriction', action="store_true", - default=eval( - os.environ.get('DOMAIN_RESTRICTION', 'False').capitalize()), + default=os.environ.get( + 'DOMAIN_RESTRICTION', 'false').lower() == 'true', help='To use domain restriction. For details see README') parser.add_argument('--search-strategy', metavar='<strategy>', -- GitLab