Skip to content

Commit

Permalink
correct error capture output
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinblack committed Dec 20, 2023
1 parent 2f683c3 commit 88a84be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arcaflow_plugin_opensearch/opensearch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def process_bulk_list_generator():
)

if resp["errors"]:
raise Exception(f"Document status: {resp['_shards']}")
shards = {}
for i in resp["items"]:
shards[list(i.values())[0]["_id"]] = list(i.values())[0]["_shards"]
raise Exception(f"Document status: {str(shards)}")

# # # # TODO -- Adapting the below from
# # # # https://github.com/cloud-bulldozer/benchmark-wrapper/blob/
Expand Down

0 comments on commit 88a84be

Please sign in to comment.