Skip to content

Commit

Permalink
fix connection undefined error while getting volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
catborise committed Dec 13, 2019
1 parent b91f1cc commit 3a925af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def get_volumes(request, compute_id, pool):
compute.type,
pool)
conn.refresh()
data['vols'] = sorted(conn.get_volumes())
except libvirtError:
pass
data['vols'] = sorted(conn.get_volumes())
return HttpResponse(json.dumps(data))

0 comments on commit 3a925af

Please sign in to comment.