Fix 'startswith' delegation typo

Change-Id: Ib6bd32549811753f31968dd42bfdef80097b5215
This commit is contained in:
David Moreau-Simard 2017-09-13 21:06:55 -06:00
parent 726eb43af4
commit 9a8c5c4f3f
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class ActionModule(normal.ActionModule):
or self._play_context.remote_addr.startswith('127.') or self._play_context.remote_addr.startswith('127.')
or self._task.delegate_to == 'localhost' or self._task.delegate_to == 'localhost'
or (self._task.delegate_to or (self._task.delegate_to
and self._task.delegate_to.startswtih('127.'))): and self._task.delegate_to.startswith('127.'))):
if not self.dispatch_handler(): if not self.dispatch_handler():
raise AnsibleError("Executing local code is prohibited") raise AnsibleError("Executing local code is prohibited")
return super(ActionModule, self).run(tmp, task_vars) return super(ActionModule, self).run(tmp, task_vars)