Merge "Added a check for attachment['instance']"
This commit is contained in:
commit
d0d0b116a9
@ -93,7 +93,8 @@ def get_attachment(volume):
|
|||||||
args=(attachment["server_id"],))
|
args=(attachment["server_id"],))
|
||||||
# TODO(jake): Make "instance" the instance name
|
# TODO(jake): Make "instance" the instance name
|
||||||
vals = {"url": url,
|
vals = {"url": url,
|
||||||
"name": attachment["instance"].name,
|
"name": attachment["instance"].name
|
||||||
|
if "instance" in attachment else None,
|
||||||
"instance": attachment["server_id"],
|
"instance": attachment["server_id"],
|
||||||
"dev": attachment["device"]}
|
"dev": attachment["device"]}
|
||||||
attachments.append(link % vals)
|
attachments.append(link % vals)
|
||||||
|
Loading…
Reference in New Issue
Block a user