Commit be9482a1 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Do not return deleted volumes

parent 09fd3049
......@@ -211,7 +211,7 @@ def vm_to_dict(vm, detail=False):
d['attachments'] = attachments
d['addresses'] = attachments_to_addresses(attachments)
d['volumes'] = [v.id for v in vm.volumes.order_by('id')]
d['volumes'] = [v.id for v in vm.volumes.filter(deleted=False).order_by('id')]
# include the latest vm diagnostic, if set
diagnostic = vm.get_last_diagnostic()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment