cloudscale: fix boilerplate (#63533)

This commit is contained in:
René Moser 2019-10-16 11:02:32 +02:00 committed by Felix Fontein
parent c4ce4a6c03
commit 332b220854
5 changed files with 11 additions and 13 deletions

View file

@ -18,7 +18,8 @@ def cloudscale_argument_spec():
return dict( return dict(
api_token=dict(fallback=(env_fallback, ['CLOUDSCALE_API_TOKEN']), api_token=dict(fallback=(env_fallback, ['CLOUDSCALE_API_TOKEN']),
no_log=True, no_log=True,
required=True), required=True,
type='str'),
api_timeout=dict(default=30, type='int'), api_timeout=dict(default=30, type='int'),
) )

View file

@ -54,6 +54,7 @@ options:
image: image:
description: description:
- Image used to create the server. - Image used to create the server.
type: str
volume_size_gb: volume_size_gb:
description: description:
- Size of the root volume in GB. - Size of the root volume in GB.

View file

@ -2,6 +2,9 @@
# Copyright (c) 2019, René Moser <mail@renemoser.net> # Copyright (c) 2019, René Moser <mail@renemoser.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
class ModuleDocFragment(object): class ModuleDocFragment(object):
@ -12,10 +15,12 @@ options:
description: description:
- cloudscale.ch API token. - cloudscale.ch API token.
- This can also be passed in the C(CLOUDSCALE_API_TOKEN) environment variable. - This can also be passed in the C(CLOUDSCALE_API_TOKEN) environment variable.
type: str
api_timeout: api_timeout:
description: description:
- Timeout in seconds for calls to the cloudscale.ch API. - Timeout in seconds for calls to the cloudscale.ch API.
default: 30 default: 30
type: int
notes: notes:
- Instead of the api_token parameter the C(CLOUDSCALE_API_TOKEN) environment variable can be used. - Instead of the api_token parameter the C(CLOUDSCALE_API_TOKEN) environment variable can be used.
- All operations are performed using the cloudscale.ch public API v1. - All operations are performed using the cloudscale.ch public API v1.

View file

@ -1,3 +1,6 @@
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible.inventory.group import to_safe_group_name from ansible.inventory.group import to_safe_group_name

View file

@ -1266,14 +1266,6 @@ lib/ansible/modules/cloud/centurylink/clc_server.py validate-modules:doc-missing
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py validate-modules:implied-parameter-type-mismatch lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py validate-modules:implied-parameter-type-mismatch
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py validate-modules:parameter-type-not-in-doc lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py validate-modules:parameter-type-not-in-doc
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py validate-modules:doc-missing-type lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py validate-modules:doc-missing-type
lib/ansible/modules/cloud/cloudscale/cloudscale_floating_ip.py validate-modules:parameter-type-not-in-doc
lib/ansible/modules/cloud/cloudscale/cloudscale_floating_ip.py validate-modules:doc-missing-type
lib/ansible/modules/cloud/cloudscale/cloudscale_server.py validate-modules:parameter-type-not-in-doc
lib/ansible/modules/cloud/cloudscale/cloudscale_server.py validate-modules:doc-missing-type
lib/ansible/modules/cloud/cloudscale/cloudscale_server_group.py validate-modules:parameter-type-not-in-doc
lib/ansible/modules/cloud/cloudscale/cloudscale_server_group.py validate-modules:doc-missing-type
lib/ansible/modules/cloud/cloudscale/cloudscale_volume.py validate-modules:parameter-type-not-in-doc
lib/ansible/modules/cloud/cloudscale/cloudscale_volume.py validate-modules:doc-missing-type
lib/ansible/modules/cloud/cloudstack/cs_account.py future-import-boilerplate lib/ansible/modules/cloud/cloudstack/cs_account.py future-import-boilerplate
lib/ansible/modules/cloud/cloudstack/cs_account.py metaclass-boilerplate lib/ansible/modules/cloud/cloudstack/cs_account.py metaclass-boilerplate
lib/ansible/modules/cloud/cloudstack/cs_affinitygroup.py future-import-boilerplate lib/ansible/modules/cloud/cloudstack/cs_affinitygroup.py future-import-boilerplate
@ -5752,8 +5744,6 @@ lib/ansible/plugins/doc_fragments/checkpoint_commands.py future-import-boilerpla
lib/ansible/plugins/doc_fragments/checkpoint_commands.py metaclass-boilerplate lib/ansible/plugins/doc_fragments/checkpoint_commands.py metaclass-boilerplate
lib/ansible/plugins/doc_fragments/checkpoint_objects.py future-import-boilerplate lib/ansible/plugins/doc_fragments/checkpoint_objects.py future-import-boilerplate
lib/ansible/plugins/doc_fragments/checkpoint_objects.py metaclass-boilerplate lib/ansible/plugins/doc_fragments/checkpoint_objects.py metaclass-boilerplate
lib/ansible/plugins/doc_fragments/cloudscale.py future-import-boilerplate
lib/ansible/plugins/doc_fragments/cloudscale.py metaclass-boilerplate
lib/ansible/plugins/doc_fragments/cloudstack.py future-import-boilerplate lib/ansible/plugins/doc_fragments/cloudstack.py future-import-boilerplate
lib/ansible/plugins/doc_fragments/cloudstack.py metaclass-boilerplate lib/ansible/plugins/doc_fragments/cloudstack.py metaclass-boilerplate
lib/ansible/plugins/doc_fragments/cnos.py future-import-boilerplate lib/ansible/plugins/doc_fragments/cnos.py future-import-boilerplate
@ -5986,8 +5976,6 @@ test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py f
test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py metaclass-boilerplate test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py metaclass-boilerplate
test/integration/targets/inventory_aws_conformance/lib/boto/session.py future-import-boilerplate test/integration/targets/inventory_aws_conformance/lib/boto/session.py future-import-boilerplate
test/integration/targets/inventory_aws_conformance/lib/boto/session.py metaclass-boilerplate test/integration/targets/inventory_aws_conformance/lib/boto/session.py metaclass-boilerplate
test/integration/targets/inventory_cloudscale/filter_plugins/group_name.py future-import-boilerplate
test/integration/targets/inventory_cloudscale/filter_plugins/group_name.py metaclass-boilerplate
test/integration/targets/inventory_kubevirt_conformance/inventory_diff.py future-import-boilerplate test/integration/targets/inventory_kubevirt_conformance/inventory_diff.py future-import-boilerplate
test/integration/targets/inventory_kubevirt_conformance/inventory_diff.py metaclass-boilerplate test/integration/targets/inventory_kubevirt_conformance/inventory_diff.py metaclass-boilerplate
test/integration/targets/inventory_kubevirt_conformance/server.py future-import-boilerplate test/integration/targets/inventory_kubevirt_conformance/server.py future-import-boilerplate