Commit e344913e by Guba Sándor

instance: force async calls to use get_remote_queue_name()

parent 2852c45f
......@@ -562,7 +562,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
self.pw = pwgen()
with instance_activity(code_suffix='change_password', instance=self,
user=user):
queue = "%s.agent" % self.node.host.hostname
queue = self.get_remote_queue_name("agent")
agent_tasks.change_password.apply_async(queue=queue,
args=(self.vm_name,
self.pw))
......
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