From c49eac5645e6978eeab87501bb23dfe55873123e Mon Sep 17 00:00:00 2001 From: ikelos Date: Thu, 15 Dec 2016 21:23:04 +0000 Subject: [PATCH] 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. --- lib/ansible/modules/network/junos/junos_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index a1212e974c..5dadd21224 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -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):