summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlwm <lwm@users.noreply.github.com>2018-08-30 05:09:21 +0200
committerRené Moser <mail@renemoser.net>2018-08-30 05:09:21 +0200
commitfbcdf8ba5bf922f7004aeb8179e6732c4e6da389 (patch)
tree589fde7dd0af61b8b8b46c585996d2ce6407cf69 /lib
parent30fd3269535a50027a92f107066884bf90e0a6e6 (diff)
downloadansible-fbcdf8ba5bf922f7004aeb8179e6732c4e6da389.tar.gz
Linode: Mark 'name' as required. Fixes #29785 (#44699)
* Mark 'name' parameter as required. Closes https://github.com/ansible/ansible/issues/29785. * Add the `linode-python` dependency for unit tests. * Add unit test for linode name parameter. * Add note about where to find required arguments. Closes https://github.com/ansible/ansible/issues/44696.
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/modules/cloud/linode/linode.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ansible/modules/cloud/linode/linode.py b/lib/ansible/modules/cloud/linode/linode.py
index 2347635df3..187064410a 100644
--- a/lib/ansible/modules/cloud/linode/linode.py
+++ b/lib/ansible/modules/cloud/linode/linode.py
@@ -30,6 +30,7 @@ options:
description:
- Name to give the instance (alphanumeric, dashes, underscore).
- To keep sanity on the Linode Web Console, name is prepended with C(LinodeID_).
+ required: true
displaygroup:
description:
- Add the instance to a Display Group in Linode Manager.
@@ -148,6 +149,7 @@ author:
- Vincent Viallet (@zbal)
notes:
- C(LINODE_API_KEY) env variable can be used instead.
+ - Please review U(https://www.linode.com/api/linode) for determining the required parameters.
'''
EXAMPLES = '''
@@ -556,7 +558,7 @@ def main():
state=dict(type='str', default='present',
choices=['absent', 'active', 'deleted', 'present', 'restarted', 'started', 'stopped']),
api_key=dict(type='str', no_log=True),
- name=dict(type='str'),
+ name=dict(type='str', required=True),
alert_bwin_enabled=dict(type='bool'),
alert_bwin_threshold=dict(type='int'),
alert_bwout_enabled=dict(type='bool'),