make delegate_to localhost act like local_action

pull/1092/head
Jonathan Palley 12 years ago
parent f8a9541405
commit 620accf117

@ -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)

Loading…
Cancel
Save