nmcli: change default value of autoconnect (#38676)

There was discrepancy between documentation and actual code.

Fixes: #38671

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/38682/head
Abhijeet Kasurde 7 years ago committed by Sam Doran
parent c0243a8a31
commit f1cd254265

@ -37,7 +37,7 @@ options:
- Whether the connection should start on boot. - Whether the connection should start on boot.
- Whether the connection profile can be automatically activated - Whether the connection profile can be automatically activated
type: bool type: bool
default: 'yes' default: True
conn_name: conn_name:
description: description:
- 'Where conn_name will be the name used to call the connection. when not provided a default name is generated: <type>[-<ifname>][-<num>]' - 'Where conn_name will be the name used to call the connection. when not provided a default name is generated: <type>[-<ifname>][-<num>]'
@ -1156,7 +1156,7 @@ def main():
# Parsing argument file # Parsing argument file
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( 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'), state=dict(required=True, choices=['present', 'absent'], type='str'),
conn_name=dict(required=True, type='str'), conn_name=dict(required=True, type='str'),
master=dict(required=False, default=None, type='str'), master=dict(required=False, default=None, type='str'),

Loading…
Cancel
Save