Skip to content

Commit

Permalink
Merge pull request #155 from dmwm/nikodemas-patch-1
Browse files Browse the repository at this point in the history
Update wma_agent_count_to_opensearch.py
  • Loading branch information
nikodemas authored Jan 11, 2024
2 parents a23bb8d + 1fe1e53 commit 754c3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CMSSpark/wma_agent_count_to_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def udf_step_extract(row):
site_name, count = "UNKNOWN", 0

result = {'host': host, 'ts': ts, 'wmaid': wmaid, 'wmats': wmats}
if 'steps' in row:
if 'steps' in row and row['steps']:
for step in row['steps']:
count += 1
if step['site'] is not None:
Expand Down

0 comments on commit 754c3d5

Please sign in to comment.