Fix Horizon crash when parsing volume list
If using Nova or Cinder CLI to create a new volume (without name) that can be used to boot a new VM, then Horizon will be crashed when the volume list is retrieved by clicking the tab "Volumes" on Horizon dashboard. Change-Id: I9850dca2f6f5ab8eebab035f9e7cf19d7262f7d2 Closes-Bug: #1389108
This commit is contained in:
parent
c88e944b97
commit
af23dd8fae
|
@ -293,7 +293,7 @@ class AttachmentColumn(tables.Column):
|
|||
# without the server name...
|
||||
instance = get_attachment_name(request, attachment)
|
||||
vals = {"instance": instance,
|
||||
"dev": html.escape(attachment["device"])}
|
||||
"dev": html.escape(attachment.get("device", ""))}
|
||||
attachments.append(link % vals)
|
||||
return safestring.mark_safe(", ".join(attachments))
|
||||
|
||||
|
|
Loading…
Reference in New Issue