mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 04:12:48 +00:00
Don't fail on configure in command (#37011)
* Don't fail on configure in command * Change test to check mode
This commit is contained in:
@@ -109,7 +109,10 @@ class TestIosCommandModule(TestIosModule):
|
||||
|
||||
def test_ios_command_configure_error(self):
|
||||
commands = ['configure terminal']
|
||||
set_module_args(dict(commands=commands))
|
||||
set_module_args({
|
||||
'commands': commands,
|
||||
'_ansible_check_mode': True,
|
||||
})
|
||||
result = self.execute_module(failed=True)
|
||||
self.assertEqual(
|
||||
result['msg'],
|
||||
|
||||
Reference in New Issue
Block a user