Skip to content

Commit

Permalink
Allow missing openqa_created_by tag in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorodskyi committed Jun 15, 2022
1 parent c4d0c2b commit ff7f888
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocw/lib/emailnotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ def draw_instance_table(objects):
hours, remainder = divmod(i.age.total_seconds(), 3600)
minutes, seconds = divmod(remainder, 60)
link = i.get_openqa_job_link()
created_by = 'N/A'
if 'openqa_created_by' in j['tags']:
created_by = j['tags']['openqa_created_by']
table.add_row([
i.provider,
i.instance_id,
j['tags']['openqa_created_by'],
created_by,
i.vault_namespace,
i.age_formated(),
build_absolute_uri(reverse(views.delete, args=[i.id])),
Expand Down

0 comments on commit ff7f888

Please sign in to comment.