Browse Source

Fix 'startswith' delegation typo

Change-Id: Ib6bd32549811753f31968dd42bfdef80097b5215
changes/06/503906/1
David Moreau-Simard 5 years ago
parent
commit
9a8c5c4f3f
  1. 2
      zuul/ansible/action/normal.py

2
zuul/ansible/action/normal.py

@ -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…
Cancel
Save