Merge "Fix Horizon crash when parsing volume list"

This commit is contained in:
Jenkins 2014-11-10 19:30:48 +00:00 committed by Gerrit Code Review
commit 71b18da403
1 changed files with 1 additions and 1 deletions

View File

@ -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))