Skip to content

Commit

Permalink
Fixes #1845: Correct display of VMs in list with no role assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jan 30, 2018
1 parent 21fe7c5 commit 4e8fc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/virtualization/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"""

VIRTUALMACHINE_ROLE = """
<label class="label" style="background-color: #{{ record.role.color }}">{{ value }}</label>
{% if record.role %}<label class="label" style="background-color: #{{ record.role.color }}">{{ value }}</label>{% else %}&mdash;{% endif %}
"""

VIRTUALMACHINE_PRIMARY_IP = """
Expand Down

0 comments on commit 4e8fc03

Please sign in to comment.