Fix the display of 'None' in the Volumes table
The 'Attached To' column in the Volumes table was inconsistent with the rest of the columns in that it did not display anything when a particular volume was not attached to any instances. This change results in displaying the status of 'None' on the 'Attached To' column as a dash[-]. The status is 'None' when a particular volume is not attached to any instance. Closes-Bug: #1743226 Change-Id: Ife6221351c02b222b326b06cb45c685bd3cffbdf
This commit is contained in:
parent
47823cce7c
commit
13722c202b
@ -429,7 +429,8 @@ class AttachmentColumn(tables.WrappingColumn):
|
||||
vals = {"instance": instance,
|
||||
"dev": html.escape(attachment.get("device", ""))}
|
||||
attachments.append(link % vals)
|
||||
return safestring.mark_safe(", ".join(attachments))
|
||||
if attachments:
|
||||
return safestring.mark_safe(", ".join(attachments))
|
||||
|
||||
|
||||
class GroupNameColumn(tables.WrappingColumn):
|
||||
|
Loading…
x
Reference in New Issue
Block a user