Commit ff301237 authored by Christos Stavrakakis's avatar Christos Stavrakakis

cyclades: Use volume's ID in exception message

parent d72f3fcf
......@@ -241,10 +241,10 @@ def update(volume, name=None, description=None, delete_on_termination=None):
def reassign_volume(volume, project):
if volume.index == 0:
raise faults.Conflict("Cannot reassign: %s is a system volume" %
volume)
volume.id)
action_fields = {"from_project": volume.project, "to_project": project}
log.info("Reassigning volume %s from project %s to %s",
volume, volume.project, project)
volume.id, volume.project, project)
volume.project = project
volume.save()
quotas.issue_and_accept_commission(volume, action="REASSIGN",
......
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