Skip to content

Commit

Permalink
Fixed sanity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksvagachev committed Jul 8, 2024
1 parent 312b4d2 commit 13539a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def execute_query(module, client, query, execute_kwargs=None, set_settings=None)

try:
if len(set_settings) != 0:
for i in set_settings:
client.execute(f"SET {i}")
for setting in set_settings:
client.execute("SET %s" % setting)
result = client.execute(query, **execute_kwargs)
except Exception as e:
if "Not enough privileges" in to_native(e):
Expand Down

0 comments on commit 13539a6

Please sign in to comment.