Skip to content

Commit

Permalink
?v -> ?v=true to workaround the sigv4 bug (#1031)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikayla Thompson <[email protected]>
  • Loading branch information
mikaylathompson authored Sep 30, 2024
1 parent b26db7f commit 10fa760
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def call_api(cluster: Cluster, path: str, method=HttpMethod.GET, data=None, head
def cat_indices(cluster: Cluster, refresh=False, as_json=False):
if refresh:
cluster.call_api('/_refresh')
as_json_suffix = "?format=json" if as_json else "?v"
as_json_suffix = "?format=json" if as_json else "?v=true"
cat_indices_path = f"/_cat/indices/_all{as_json_suffix}"
r = cluster.call_api(cat_indices_path)
return r.json() if as_json else r.content
Expand Down

0 comments on commit 10fa760

Please sign in to comment.