Commit 620accf1 by Jonathan Palley

make delegate_to localhost act like local_action

parent f8a95414
......@@ -62,6 +62,11 @@ class Task(object):
self.action = ds.get('local_action', '')
self.delegate_to = '127.0.0.1'
self.transport = 'local'
# delegate_to: localhost should use local transport
elif (ds.get('delegate_to', None) in ['127.0.0.1', 'localhost']):
self.action = ds.get('action', '')
self.delegate_to = '127.0.0.1'
self.transport = 'local'
else:
self.action = ds.get('action', '')
self.delegate_to = ds.get('delegate_to', None)
......
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