Debian Codegraph @

test/integration/targets/shell-plugins/action_plugins/test_shell.py

raw
1 # This file is part of Ansible
2
3 # Copyright (c) 2019 Ansible Project
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6 from __future__ import annotations
7
8 from ansible.plugins.action import ActionBase
9
10
11 class ActionModule(ActionBase):
12
13 def run(self, tmp=None, task_vars=None):
14 result = super(ActionModule, self).run(tmp, task_vars)
15 del tmp # tmp no longer has any effect
16 result['shell'] = self._connection._shell.SHELL_FAMILY
17 return result