Display attachment's server_id when name is no longer available
This scenario occurs when the associated VM instance with the volume is not found
by whatever underlying reasons.
Closes-Bug:
@@ -355,7 +355,7 @@ def get_attachment_name(request, attachment):
server = api.nova.server_get(request, server_id)
name = server.name
except Exception:
- name = None
+ name = server_id
exceptions.handle(request, _("Unable to retrieve "
"attachment information."))
try:
