diff options
author | Zuul <zuul@review.opendev.org> | 2022-04-27 23:31:45 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-04-27 23:31:45 +0000 |
commit | 71453dd7f257c546ef8f12ef0d0aafa55973fa1c (patch) | |
tree | c161b33b9b5071712d3b36eb8f7a37de06ec1e02 /zuul/ansible | |
parent | df9f3d7e6447e0c3e47aafc6d28e1375a8daa093 (diff) | |
parent | 810c9e31ef4573a3b1769e53bf04c623c8462b42 (diff) | |
download | zuul-71453dd7f257c546ef8f12ef0d0aafa55973fa1c.tar.gz |
Merge "Remove localhost restriction from command.py"
Diffstat (limited to 'zuul/ansible')
-rw-r--r-- | zuul/ansible/base/action/command.py | 4 |
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 ( |