Skip to content

Commit

Permalink
Fix formatting (elastic#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-deam authored Jul 11, 2022
1 parent 693d728 commit 82c698e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions esrally/utils/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion tests/utils/opts_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}

Expand Down

0 comments on commit 82c698e

Please sign in to comment.