Skip to content

Commit

Permalink
for idaholab#446, allow specifying OPENSEARCH_INDEX_SIZE_PRUNE_LIMIT …
Browse files Browse the repository at this point in the history
…for other database modes
  • Loading branch information
mmguero committed Sep 16, 2024
1 parent 87086cd commit 05c2439
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions shared/bin/opensearch_index_size_prune.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ def main():
sys.tracebacklimit = 0

# short-circuit without printing anything else
if (
(args.limit == '0')
or (not args.index)
or (args.opensearchMode == malcolm_utils.DatabaseMode.ElasticsearchRemote)
):
if (args.limit == '0') or (not args.index):
return

opensearchIsLocal = (args.opensearchMode == malcolm_utils.DatabaseMode.OpenSearchLocal) or (
Expand Down

0 comments on commit 05c2439

Please sign in to comment.