make delegate_to localhost act like local_action
This commit is contained in:
parent
f8a9541405
commit
620accf117
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ class Task(object):
|
||||||
self.action = ds.get('local_action', '')
|
self.action = ds.get('local_action', '')
|
||||||
self.delegate_to = '127.0.0.1'
|
self.delegate_to = '127.0.0.1'
|
||||||
self.transport = 'local'
|
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:
|
else:
|
||||||
self.action = ds.get('action', '')
|
self.action = ds.get('action', '')
|
||||||
self.delegate_to = ds.get('delegate_to', None)
|
self.delegate_to = ds.get('delegate_to', None)
|
||||||
|
|
Loading…
Reference in a new issue