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:
Nathaniel Case 2018-03-06 18:10:09 -05:00 committed by GitHub
parent 67ffde4ac1
commit efb8b539c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -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'],