mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
vyos_user fix idempotent (#26289)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -77,8 +77,7 @@ class TestVyosUserModule(TestVyosModule):
|
||||
|
||||
def test_vyos_user_update_password_on_create_ok(self):
|
||||
set_module_args(dict(name='ansible', password='test', update_password='on_create'))
|
||||
result = self.execute_module(changed=True)
|
||||
self.assertEqual(result['commands'], ['set system login user ansible authentication plaintext-password test'])
|
||||
self.execute_module()
|
||||
|
||||
def test_vyos_user_update_password_always(self):
|
||||
set_module_args(dict(name='ansible', password='test', update_password='always'))
|
||||
|
||||
Reference in New Issue
Block a user