mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 13:29:08 -07:00
Fix VyOS check mode (#35977)
* Revert "commented out check tests (#35788)"
This reverts commit 3df2561405
.
* `discard_changes()` now uses `exit discard`
instead of just `discard`. Also a slight tweak to avoid a second `exit` after
`exit discard`
This commit is contained in:
parent
d5ae63c0ea
commit
6cdf91fd35
3 changed files with 19 additions and 20 deletions
|
@ -26,7 +26,7 @@ from itertools import chain
|
|||
|
||||
from ansible.module_utils._text import to_bytes, to_text
|
||||
from ansible.module_utils.network.common.utils import to_list
|
||||
from ansible.plugins.cliconf import CliconfBase, enable_mode
|
||||
from ansible.plugins.cliconf import CliconfBase
|
||||
|
||||
|
||||
class Cliconf(CliconfBase):
|
||||
|
@ -69,7 +69,7 @@ class Cliconf(CliconfBase):
|
|||
self.send_command(to_bytes(command))
|
||||
|
||||
def discard_changes(self, *args, **kwargs):
|
||||
self.send_command(b'discard')
|
||||
self.send_command(b'exit discard')
|
||||
|
||||
def get_capabilities(self):
|
||||
result = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue