Commit d00c893d by Guba Sándor

instance: fixed __clear_destroy to use delete_dump

parent c954157e
......@@ -690,9 +690,9 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
queue_name = self.mem_dump['datastore'].get_remote_queue_name(
'storage')
try:
from storage.tasks.remote_tasks import delete
delete.apply_async(args=[self.mem_dump['path']],
queue=queue_name).get()
from storage.tasks.remote_tasks import delete_dump
delete_dump.apply_async(args=[self.mem_dump['path']],
queue=queue_name).get()
except:
pass
......
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 sign in to comment