mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix the junos zeroize function (#19142)
Currently this function directs to the standard NetworkModule, whose run_commands function takes no arguments (other than self). This directs the call to the connection's cli method to run the command directly on the device.
This commit is contained in:
@@ -278,7 +278,7 @@ def rollback_config(module, result):
|
||||
|
||||
def zeroize_config(module, result):
|
||||
if not module.check_mode:
|
||||
module.cli.run_commands('request system zeroize')
|
||||
module.connection.cli('request system zeroize')
|
||||
result['changed'] = True
|
||||
|
||||
def confirm_config(module, result):
|
||||
|
||||
Reference in New Issue
Block a user