mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Revert "Track local_action internally to prevent it from being overridden"
This reverts commit 49ca0eb797
.
This commit is contained in:
parent
101c8785ec
commit
abf2e13955
3 changed files with 6 additions and 22 deletions
|
@ -109,11 +109,11 @@ class TestModArgsDwim(unittest.TestCase):
|
|||
|
||||
def test_local_action_string(self):
|
||||
m = ModuleArgsParser(dict(local_action='copy src=a dest=b'))
|
||||
mod, args, connection = m.parse()
|
||||
self._debug(mod, args, connection)
|
||||
mod, args, delegate_to = m.parse()
|
||||
self._debug(mod, args, delegate_to)
|
||||
self.assertEqual(mod, 'copy')
|
||||
self.assertEqual(args, dict(src='a', dest='b', _local_action=True))
|
||||
self.assertIs(connection, 'local')
|
||||
self.assertEqual(args, dict(src='a', dest='b'))
|
||||
self.assertIs(delegate_to, 'localhost')
|
||||
|
||||
def test_multiple_actions(self):
|
||||
m = ModuleArgsParser(dict(action='shell echo hi', local_action='shell echo hi'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue