1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove unnecessary required=False s in linode_v4 module (#2251)

This commit is contained in:
Amin Vakil 2021-04-17 12:21:03 +04:30 committed by GitHub
parent 69a9a77b65
commit 085c43b76b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,6 @@ options:
- The region of the instance. This is a required parameter only when - The region of the instance. This is a required parameter only when
creating Linode instances. See creating Linode instances. See
U(https://www.linode.com/docs/api/regions/). U(https://www.linode.com/docs/api/regions/).
required: false
type: str type: str
image: image:
description: description:
@ -36,14 +35,12 @@ options:
creating Linode instances. See creating Linode instances. See
U(https://www.linode.com/docs/api/images/). U(https://www.linode.com/docs/api/images/).
type: str type: str
required: false
type: type:
description: description:
- The type of the instance. This is a required parameter only when - The type of the instance. This is a required parameter only when
creating Linode instances. See creating Linode instances. See
U(https://www.linode.com/docs/api/linode-types/). U(https://www.linode.com/docs/api/linode-types/).
type: str type: str
required: false
label: label:
description: description:
- The instance label. This label is used as the main determiner for - The instance label. This label is used as the main determiner for
@ -56,12 +53,10 @@ options:
group labelling is deprecated but still supported. The encouraged group labelling is deprecated but still supported. The encouraged
method for marking instances is to use tags. method for marking instances is to use tags.
type: str type: str
required: false
tags: tags:
description: description:
- The tags that the instance should be marked under. See - The tags that the instance should be marked under. See
U(https://www.linode.com/docs/api/tags/). U(https://www.linode.com/docs/api/tags/).
required: false
type: list type: list
elements: str elements: str
root_pass: root_pass:
@ -69,12 +64,10 @@ options:
- The password for the root user. If not specified, one will be - The password for the root user. If not specified, one will be
generated. This generated password will be available in the task generated. This generated password will be available in the task
success JSON. success JSON.
required: false
type: str type: str
authorized_keys: authorized_keys:
description: description:
- A list of SSH public key parts to deploy for the root user. - A list of SSH public key parts to deploy for the root user.
required: false
type: list type: list
elements: str elements: str
state: state:
@ -242,15 +235,15 @@ def initialise_module():
no_log=True, no_log=True,
fallback=(env_fallback, ['LINODE_ACCESS_TOKEN']), fallback=(env_fallback, ['LINODE_ACCESS_TOKEN']),
), ),
authorized_keys=dict(type='list', elements='str', required=False, no_log=False), authorized_keys=dict(type='list', elements='str', no_log=False),
group=dict(type='str', required=False), group=dict(type='str'),
image=dict(type='str', required=False), image=dict(type='str'),
region=dict(type='str', required=False), region=dict(type='str'),
root_pass=dict(type='str', required=False, no_log=True), root_pass=dict(type='str', no_log=True),
tags=dict(type='list', elements='str', required=False), tags=dict(type='list', elements='str'),
type=dict(type='str', required=False), type=dict(type='str'),
stackscript_id=dict(type='int', required=False), stackscript_id=dict(type='int'),
stackscript_data=dict(type='dict', required=False), stackscript_data=dict(type='dict'),
), ),
supports_check_mode=False, supports_check_mode=False,
required_one_of=( required_one_of=(