Skip to content

Commit

Permalink
fail is das output is not in json format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 31, 2018
1 parent b3549ac commit 09358cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion das-utils/das_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def run_das_client(outfile, query, override, dasclient="das_client", threshold=9
das_cmd = "%s --format=json --limit=%s --query '%s%s' %s --threshold=%s" % (dasclient, limit, query, field_filter, retry_str, threshold)
print " Running: ",sha,das_cmd
print " Fields:",sha,fields
err, out = getstatusoutput(das_cmd + " | grep -v '^WARNING: '")
err, out = getstatusoutput(das_cmd)
if err:
print " ",sha,out
return False
Expand Down

0 comments on commit 09358cc

Please sign in to comment.