Skip to content

Commit

Permalink
use generator so that revoke/purge runs as results come in
Browse files Browse the repository at this point in the history
  • Loading branch information
pymonger committed Jul 9, 2018
1 parent 4b9896c commit 5e46914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def purge_products(query,component,operation):
start_url = "{0}/{1}/_search".format(es_url,es_index)
scroll_url = "{0}/_search".format(es_url,es_index)

results = hysds_commons.request_utils.post_scrolled_json_responses(start_url,scroll_url,data=json.dumps(query),logger=logger)
results = hysds_commons.request_utils.post_scrolled_json_responses(start_url,scroll_url,generator=True,data=json.dumps(query),logger=logger)
print results

if component=='tosca':
Expand Down

0 comments on commit 5e46914

Please sign in to comment.