mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-09-21 06:21:17 -07: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):
|
def zeroize_config(module, result):
|
||||||
if not module.check_mode:
|
if not module.check_mode:
|
||||||
module.cli.run_commands('request system zeroize')
|
module.connection.cli('request system zeroize')
|
||||||
result['changed'] = True
|
result['changed'] = True
|
||||||
|
|
||||||
def confirm_config(module, result):
|
def confirm_config(module, result):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue