mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
ee5d5c3e84
commit
c49eac5645
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue