Skip to content

Commit

Permalink
Cleaner implementation for parsing the conf dict
Browse files Browse the repository at this point in the history
  • Loading branch information
duhizjame committed Oct 21, 2024
1 parent bb88c22 commit 27f29e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def _prepare_command(self, cmd: str | list[str]) -> list[str]:
if self._conf:
conf = self._conf
if isinstance(conf, dict):
for key in conf:
connection_cmd += ["--conf", f"{key}={conf[key]}"]
for key, value in conf.items():
connection_cmd += ["--conf", f"{key}={value}"]
elif isinstance(conf, str):
for conf_el in conf.split(","):
connection_cmd += ["--conf", conf_el]
Expand Down

0 comments on commit 27f29e8

Please sign in to comment.