mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Fix vyos banner idempotent (#26338)
* fix vyos_banner idempotent Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * fix vyos_banner unit test Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
483346d94b
commit
1b427aa419
2 changed files with 9 additions and 8 deletions
|
@ -44,10 +44,10 @@ class TestVyosBannerModule(TestVyosModule):
|
|||
|
||||
def test_vyos_banner_create(self):
|
||||
set_module_args(dict(banner='pre-login', text='test\nbanner\nstring'))
|
||||
commands = ['set system login banner pre-login "test\nbanner\nstring"']
|
||||
commands = ["set system login banner pre-login 'test\nbanner\nstring'"]
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
|
||||
def test_vyos_banner_remove(self):
|
||||
set_module_args(dict(banner='pre-login', state='absent'))
|
||||
commands = ['delete system login banner pre-login']
|
||||
self.execute_module(changed=True, commands=commands)
|
||||
self.execute_module(changed=False, commands=[])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue