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.
pull/19411/head
ikelos 9 years ago committed by Peter Sprygada
parent ee5d5c3e84
commit c49eac5645

@ -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…
Cancel
Save