From 6f529a20b37e565db6c92e559053c2dad398b284 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesinger Date: Wed, 8 Aug 2018 15:58:54 +0200 Subject: [PATCH] Fix ini variables for netconf and network_cli connections (#43601) * Fix netconf ini variable names (#43130) * Fix ini variables for netconf and network_cli connections --- lib/ansible/plugins/connection/netconf.py | 16 ++++++++-------- lib/ansible/plugins/connection/network_cli.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/ansible/plugins/connection/netconf.py b/lib/ansible/plugins/connection/netconf.py index abd3989fb4..b321bd9d12 100644 --- a/lib/ansible/plugins/connection/netconf.py +++ b/lib/ansible/plugins/connection/netconf.py @@ -73,8 +73,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: @@ -97,8 +97,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 persistent_connect_timeout: @@ -110,8 +110,8 @@ options: will fail default: 30 ini: - section: persistent_connection - key: persistent_connect_timeout + - section: persistent_connection + key: connect_timeout env: - name: ANSIBLE_PERSISTENT_CONNECT_TIMEOUT persistent_command_timeout: @@ -123,8 +123,8 @@ options: close default: 10 ini: - section: persistent_connection - key: persistent_command_timeout + - section: persistent_connection + key: command_timeout env: - name: ANSIBLE_PERSISTENT_COMMAND_TIMEOUT """ diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index 9696890083..057679423d 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: