summaryrefslogtreecommitdiff
path: root/zuul/ansible
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-04-27 23:31:45 +0000
committerGerrit Code Review <review@openstack.org>2022-04-27 23:31:45 +0000
commit71453dd7f257c546ef8f12ef0d0aafa55973fa1c (patch)
treec161b33b9b5071712d3b36eb8f7a37de06ec1e02 /zuul/ansible
parentdf9f3d7e6447e0c3e47aafc6d28e1375a8daa093 (diff)
parent810c9e31ef4573a3b1769e53bf04c623c8462b42 (diff)
downloadzuul-71453dd7f257c546ef8f12ef0d0aafa55973fa1c.tar.gz
Merge "Remove localhost restriction from command.py"
Diffstat (limited to 'zuul/ansible')
-rw-r--r--zuul/ansible/base/action/command.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/zuul/ansible/base/action/command.py b/zuul/ansible/base/action/command.py
index c229bfd2b..52202bff9 100644
--- a/zuul/ansible/base/action/command.py
+++ b/zuul/ansible/base/action/command.py
@@ -15,16 +15,12 @@
from zuul.ansible import paths
-from ansible.errors import AnsibleError
command = paths._import_ansible_action_plugin("command")
class ActionModule(command.ActionModule):
def run(self, tmp=None, task_vars=None):
- if paths._is_localhost_task(self):
- raise AnsibleError("Executing local code is prohibited")
-
# we need the zuul_log_id on shell and command tasks
host = paths._sanitize_filename(task_vars.get('inventory_hostname'))
if self._task.action in (