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