don't update if count is 0
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5f7c448c18
commit
9ad8ef644b
|
@ -82,7 +82,7 @@ def main():
|
|||
if opts.query > 0:
|
||||
resp = es.search(index=index, body=body)
|
||||
print_logs(resp['hits']['hits'])
|
||||
elif opts.update:
|
||||
elif opts.update and count > 0:
|
||||
# add the script for extracting peer_id
|
||||
body['script'] = { 'lang': 'painless', 'inline': PAINLESS_SCRIPT }
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue