1
0
Fork 0
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:
ikelos 2016-12-15 21:23:04 +00:00 committed by Peter Sprygada
parent ee5d5c3e84
commit c49eac5645

View file

@ -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):