This commit is contained in:
Felix Fontein 2022-08-04 20:22:16 +02:00 committed by GitHub
parent 4eb3540c8e
commit f67473024d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 72 additions and 96 deletions

View file

@ -88,7 +88,7 @@ msg:
description: The command standard output
returned: always
type: str
sample: [u'Using default tag: latest ...']
sample: 'Using default tag: latest ...'
'''
# import module snippets

View file

@ -64,7 +64,7 @@ msg:
description: The command standard output
returned: always
type: str
sample: [u'Using default tag: latest ...']
sample: 'Using default tag: latest ...'
'''
import traceback

View file

@ -152,7 +152,7 @@ options:
description:
- Set status of Lassie watchdog.
type: bool
default: "True"
default: true
requirements:
- python >= 2.6
- linode-python

View file

@ -393,7 +393,7 @@ actions:
description: List of actions performed for the instance.
returned: success
type: list
sample: '["create", "start"]'
sample: ["create", "start"]
'''
import datetime
import os

View file

@ -222,7 +222,7 @@ actions:
description: List of actions performed for the profile.
returned: success
type: list
sample: '["create"]'
sample: ["create"]
'''
import os

View file

@ -148,7 +148,7 @@ vm:
description: Returns all of the VMs variables and execution.
returned: always
type: dict
sample: '{
sample: {
"boot_order": [
"hd",
"network"
@ -206,7 +206,7 @@ vm:
"vmcpu": "4",
"vmhost": "host416",
"vmmem": "16"
}'
}
'''
EXAMPLES = r'''

View file

@ -212,7 +212,8 @@ RETURN = '''
servers:
description: Information about each server that was processed
type: list
sample: '[{"hostname": "my-server", "id": "server-id"}]'
sample:
- {"hostname": "my-server", "id": "server-id"}
returned: always
'''

View file

@ -234,8 +234,9 @@ roles:
description: list of dictionaries of roles, each role is described by name, cardinality, state and nodes ids
type: list
returned: success
sample: '[{"cardinality": 1,"name": "foo","state": "RUNNING","ids": [ 123, 456 ]},
{"cardinality": 2,"name": "bar","state": "RUNNING", "ids": [ 452, 567, 746 ]}]'
sample:
- {"cardinality": 1,"name": "foo","state": "RUNNING", "ids": [ 123, 456 ]}
- {"cardinality": 2,"name": "bar","state": "RUNNING", "ids": [ 452, 567, 746 ]}
'''
import os

View file

@ -261,10 +261,17 @@ changed:
devices:
description: Information about each device that was processed
type: list
sample: '[{"hostname": "my-server.com", "id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7",
"public_ipv4": "147.229.15.12", "private-ipv4": "10.0.15.12",
"tags": [], "locked": false, "state": "provisioning",
"public_ipv6": ""2604:1380:2:5200::3"}]'
sample:
- {
"hostname": "my-server.com",
"id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7",
"public_ipv4": "147.229.15.12",
"private-ipv4": "10.0.15.12",
"tags": [],
"locked": false,
"state": "provisioning",
"public_ipv6": "2604:1380:2:5200::3"
}
returned: success
''' # NOQA