mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix junos modules check_mode issue (#37311)
Fixes #37208 If check_mode is enabled instead of committing th config need to discard all the chnages to cnadidate db In case of cli to discard changes issue `rollback 0` command and for netconf execute `discard-changes` rpc call
This commit is contained in:
@@ -180,9 +180,9 @@ def locked_config(module):
|
||||
unlock_configuration(module)
|
||||
|
||||
|
||||
def discard_changes(module, exit=False):
|
||||
def discard_changes(module):
|
||||
conn = get_connection(module)
|
||||
return conn.discard_changes(exit=exit)
|
||||
return conn.discard_changes()
|
||||
|
||||
|
||||
def get_diff(module, rollback='0'):
|
||||
|
||||
Reference in New Issue
Block a user