Commit babc7544 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

cyclades: Log project reassign actions

parent a79f0a58
......@@ -236,6 +236,8 @@ def delete_floating_ip(floating_ip):
def reassign_floating_ip(floating_ip, project):
action_fields = {"to_project": project,
"from_project": floating_ip.project}"Reassigning floating IP %s from project %s to %s",
floating_ip, floating_ip.project, project)
floating_ip.project = project
quotas.issue_and_accept_commission(floating_ip, action="REASSIGN",
......@@ -179,6 +179,8 @@ def delete(network):
def reassign(network, project):
action_fields = {"to_project": project, "from_project": network.project}"Reassigning network %s from project %s to %s",
network, network.project, project)
network.project = project
quotas.issue_and_accept_commission(network, action="REASSIGN",
......@@ -336,6 +336,8 @@ def _resize(vm, flavor):
def reassign(vm, project):
action_fields = {"to_project": project, "from_project": vm.project}"Reassigning VM %s from project %s to %s",
vm, vm.project, project)
vm.project = project
quotas.issue_and_accept_commission(vm, 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