Fix 'startswith' delegation typo
Change-Id: Ib6bd32549811753f31968dd42bfdef80097b5215
This commit is contained in:
parent
726eb43af4
commit
9a8c5c4f3f
|
@ -40,7 +40,7 @@ class ActionModule(normal.ActionModule):
|
|||
or self._play_context.remote_addr.startswith('127.')
|
||||
or self._task.delegate_to == 'localhost'
|
||||
or (self._task.delegate_to
|
||||
and self._task.delegate_to.startswtih('127.'))):
|
||||
and self._task.delegate_to.startswith('127.'))):
|
||||
if not self.dispatch_handler():
|
||||
raise AnsibleError("Executing local code is prohibited")
|
||||
return super(ActionModule, self).run(tmp, task_vars)
|
||||
|
|
Loading…
Reference in New Issue