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