From a5774bd29a93ca4dcdf2626b5dcce44a4c35e6eb Mon Sep 17 00:00:00 2001 From: Sebastian Wiesinger Date: Thu, 2 Aug 2018 17:38:51 +0200 Subject: [PATCH] Fix ini variables for netconf and network_cli connections (#43599) --- lib/ansible/plugins/connection/netconf.py | 8 ++++---- lib/ansible/plugins/connection/network_cli.py | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/ansible/plugins/connection/netconf.py b/lib/ansible/plugins/connection/netconf.py index 73648f2f23..6956bc2f99 100644 --- a/lib/ansible/plugins/connection/netconf.py +++ b/lib/ansible/plugins/connection/netconf.py @@ -72,8 +72,8 @@ options: - The private SSH key or certificate file used to to authenticate to the remote device when first establishing the SSH connection. ini: - section: defaults - key: private_key_file + - section: defaults + key: private_key_file env: - name: ANSIBLE_PRIVATE_KEY_FILE vars: @@ -96,8 +96,8 @@ options: option on production systems as it could create a security vulnerability. default: 'no' ini: - section: paramiko_connection - key: host_key_auto_add + - section: paramiko_connection + key: host_key_auto_add env: - name: ANSIBLE_HOST_KEY_AUTO_ADD look_for_keys: diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index 37c3c2ce74..d486ccfb0f 100644 --- a/lib/ansible/plugins/connection/network_cli.py +++ b/lib/ansible/plugins/connection/network_cli.py @@ -68,8 +68,8 @@ options: - The private SSH key or certificate file used to to authenticate to the remote device when first establishing the SSH connection. ini: - section: defaults - key: private_key_file + - section: defaults + key: private_key_file env: - name: ANSIBLE_PRIVATE_KEY_FILE vars: @@ -94,8 +94,8 @@ options: - Can be configured form the CLI via the C(--become) or C(-b) options default: False ini: - section: privilege_escalation - key: become + - section: privilege_escalation + key: become env: - name: ANSIBLE_BECOME vars: @@ -107,8 +107,8 @@ options: C(enable) but could be defined as other values. default: sudo ini: - section: privilege_escalation - key: become_method + - section: privilege_escalation + key: become_method env: - name: ANSIBLE_BECOME_METHOD vars: @@ -125,8 +125,8 @@ options: option on production systems as it could create a security vulnerability. default: False ini: - section: paramiko_connection - key: host_key_auto_add + - section: paramiko_connection + key: host_key_auto_add env: - name: ANSIBLE_HOST_KEY_AUTO_ADD persistent_connect_timeout: