From 82c698e5cacdd2eef735c6e775b08354825dea12 Mon Sep 17 00:00:00 2001 From: Brad Deam <54515790+b-deam@users.noreply.github.com> Date: Tue, 12 Jul 2022 00:37:17 +0930 Subject: [PATCH] Fix formatting (#1543) --- esrally/utils/opts.py | 3 +-- tests/utils/opts_test.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/esrally/utils/opts.py b/esrally/utils/opts.py index 624c444e2..a6de2f803 100644 --- a/esrally/utils/opts.py +++ b/esrally/utils/opts.py @@ -212,8 +212,7 @@ def parse_options(self): default_client_map = kv_to_map([ClientOptions.DEFAULT_CLIENT_OPTIONS]) if self.argvalue == ClientOptions.DEFAULT_CLIENT_OPTIONS and self.target_hosts is not None: # --client-options unset but multi-clusters used in --target-hosts? apply options defaults for all cluster names. - self.parsed_options = {cluster_name: default_client_map for cluster_name in - self.target_hosts.all_hosts.keys()} + self.parsed_options = {cluster_name: default_client_map for cluster_name in self.target_hosts.all_hosts.keys()} else: self.parsed_options = to_dict(self.argvalue, default_parser=ClientOptions.normalize_to_dict) diff --git a/tests/utils/opts_test.py b/tests/utils/opts_test.py index 0b7cdc0a3..ed9dfbe4a 100644 --- a/tests/utils/opts_test.py +++ b/tests/utils/opts_test.py @@ -72,7 +72,6 @@ def test_kv_to_map(self): assert opts.kv_to_map(["k:none"]) == {"k": None} assert opts.kv_to_map(["k:NONE"]) == {"k": None} - def test_to_dict_with_inline_json(self): assert opts.to_dict('{"default": ["127.0.0.1:9200","10.17.0.5:19200"]}') == {"default": ["127.0.0.1:9200", "10.17.0.5:19200"]}