From f1cd2542653dd8274025858fdaca057c285bd6d0 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 12 Apr 2018 21:40:41 +0530 Subject: [PATCH] nmcli: change default value of autoconnect (#38676) There was discrepancy between documentation and actual code. Fixes: #38671 Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/net_tools/nmcli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/net_tools/nmcli.py b/lib/ansible/modules/net_tools/nmcli.py index d16c306e33..817a92cd25 100644 --- a/lib/ansible/modules/net_tools/nmcli.py +++ b/lib/ansible/modules/net_tools/nmcli.py @@ -37,7 +37,7 @@ options: - Whether the connection should start on boot. - Whether the connection profile can be automatically activated type: bool - default: 'yes' + default: True conn_name: description: - 'Where conn_name will be the name used to call the connection. when not provided a default name is generated: [-][-]' @@ -1156,7 +1156,7 @@ def main(): # Parsing argument file module = AnsibleModule( argument_spec=dict( - autoconnect=dict(required=False, default=None, type='bool'), + autoconnect=dict(required=False, default=True, type='bool'), state=dict(required=True, choices=['present', 'absent'], type='str'), conn_name=dict(required=True, type='str'), master=dict(required=False, default=None, type='str'),