fix typos in cloud modules (#62194)

* fix typos in cloud modules

* fix typos in cloud modules, fix ci tests
pull/62209/head
Andrey Klychkov 5 years ago committed by Will Thames
parent 3dbf89e8ae
commit 7e91998049

@ -233,7 +233,7 @@ def manage_state(module, aws):
if state == 'present':
if current_state == 'present':
updates = False
# Update Batch Job Queuet configuration
# Update Batch Job Queue configuration
job_kwargs = {'jobQueue': job_queue_name}
# Update configuration if needed

@ -190,7 +190,7 @@ EXAMPLES = '''
RETURN = '''
project:
description: Returns the dictionary desribing the code project configuration.
description: Returns the dictionary describing the code project configuration.
returned: success
type: complex
contains:
@ -208,7 +208,7 @@ project:
description: A description of the build project
returned: always
type: string
sample: My nice little proejct
sample: My nice little project
source:
description: Information about the build input source code.
returned: always
@ -304,7 +304,7 @@ def create_or_update_project(client, params, module):
formatted_create_params = dict((k, v) for k, v in formatted_params.items() if k in permitted_create_params)
formatted_update_params = dict((k, v) for k, v in formatted_params.items() if k in permitted_update_params)
# Check if project with that name aleady exists and if so update existing:
# Check if project with that name already exists and if so update existing:
found = describe_project(client=client, name=name, module=module)
changed = False

@ -139,7 +139,7 @@ EXAMPLES = '''
RETURN = '''
pipeline:
description: Returns the dictionary desribing the code pipeline configuration.
description: Returns the dictionary describing the code pipeline configuration.
returned: success
type: complex
contains:

@ -36,7 +36,7 @@ options:
- The ID of the Direct Connect link aggregation group.
num_connections:
description:
- The number of connections with which to intialize the link aggregation group.
- The number of connections with which to initialize the link aggregation group.
min_links:
description:
- The minimum number of physical connections that must be operational for the LAG itself to be operational.
@ -353,7 +353,7 @@ def ensure_absent(client, lag_id, lag_name, force_delete, delete_with_disassocia
latest_status = lag_status(client, lag_id)
# determinine the associated connections and virtual interfaces to disassociate
# determine the associated connections and virtual interfaces to disassociate
virtual_interfaces, connections = get_connections_and_virtual_interfaces(client, lag_id)
# If min_links is not 0, there are associated connections, or if there are virtual interfaces, ask for force_delete

@ -25,7 +25,7 @@ options:
choices: [present, absent]
id_to_associate:
description:
- The ID of the link aggrecation group or connection to associate with the virtual interface.
- The ID of the link aggregation group or connection to associate with the virtual interface.
aliases: [link_aggregation_group_id, connection_id]
public:
description:

@ -177,7 +177,7 @@ class AwsCvsNetappFileSystem(object):
def __init__(self):
"""
Parse arguments, setup state variables,
check paramenters and ensure request module is installed
check parameters and ensure request module is installed
"""
self.argument_spec = netapp_utils.aws_cvs_host_argument_spec()
self.argument_spec.update(dict(

@ -112,7 +112,7 @@ class AwsCvsNetappSnapshot(object):
def __init__(self):
"""
Parse arguments, setup state variables,
check paramenters and ensure request module is installed
check parameters and ensure request module is installed
"""
self.argument_spec = netapp_utils.aws_cvs_host_argument_spec()
self.argument_spec.update(dict(
@ -145,7 +145,7 @@ class AwsCvsNetappSnapshot(object):
def getSnapshotId(self, name):
# Check if snapshot exists
# Return snpashot Id If Snapshot is found, None otherwise
# Return snapshot Id If Snapshot is found, None otherwise
list_snapshots, error = self.restApi.get('Snapshots')
if error:
@ -217,7 +217,7 @@ class AwsCvsNetappSnapshot(object):
elif cd_action == "create":
if 'from_name' in self.data:
# If cd_action is craete and from_name is given
# If cd_action is create and from_name is given
snapshotId = self.getSnapshotId(self.data['from_name'])
if snapshotId is not None:
# If resource pointed by from_name exists, rename the snapshot to name

@ -29,7 +29,7 @@ options:
description: The name used to identify the policy within the scope of the identity it's attached to.
required: true
policy:
description: A properly formated JSON sending authorization policy. Required when I(state=present).
description: A properly formatted JSON sending authorization policy. Required when I(state=present).
state:
description: Whether to create(or update) or delete the authorization policy on the identity.
default: present

@ -47,7 +47,7 @@ options:
description:
- A list of rules that the Web ACL will enforce.
- Each rule must contain I(name), I(action), I(priority) keys.
- Priorities must be unique, but not necessarily consecutive. Lower numbered priorities are evalauted first.
- Priorities must be unique, but not necessarily consecutive. Lower numbered priorities are evaluated first.
- The I(type) key can be passed as C(rate_based), it defaults to C(regular)
purge_rules:
description:

@ -153,7 +153,7 @@ options:
required: False
capabilities:
description:
- Specify capabilites that stack template contains.
- Specify capabilities that stack template contains.
- Valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM and CAPABILITY_AUTO_EXPAND.
type: list
version_added: "2.8"

@ -30,7 +30,7 @@ extends_documentation_fragment:
options:
distribution_id:
description:
- The id of the cloudfront distribution to invalidate paths for. Can be specified insted of the alias.
- The id of the cloudfront distribution to invalidate paths for. Can be specified instead of the alias.
required: false
alias:
description:

@ -101,7 +101,7 @@ cloud_front_origin_access_identity:
returned: always
type: str
s3_canonical_user_id:
description: the cannonical user id of the user who created the oai
description: the canonical user id of the user who created the oai
returned: always
type: str
e_tag:

@ -279,7 +279,7 @@ class CloudWatchEventRule(object):
return targets_request
def _snakify(self, dict):
"""Converts cammel case to snake case"""
"""Converts camel case to snake case"""
return camel_dict_to_snake_dict(dict)

@ -209,7 +209,7 @@ def get_endpoint_deleted_waiter(client):
def endpoint_exists(endpoint):
""" Returns boolean based on the existance of the endpoint
""" Returns boolean based on the existence of the endpoint
:param endpoint: dict containing the described endpoint
:return: bool
"""

@ -108,7 +108,7 @@ def get_dms_client(module, aws_connect_params, client_region, ec2_url):
def replication_subnet_exists(subnet):
""" Returns boolean based on the existance of the endpoint
""" Returns boolean based on the existence of the endpoint
:param endpoint: dict containing the described endpoint
:return: bool
"""
@ -140,7 +140,7 @@ def compare_params(module, param_described):
"""
modparams = create_module_params(module)
changed = False
# need to sanitize values that get retured from the API
# need to sanitize values that get returned from the API
if 'VpcId' in param_described.keys():
param_described.pop('VpcId')
if 'SubnetGroupStatus' in param_described.keys():

@ -1410,7 +1410,7 @@ def get_instances_by_launch_config(props, lc_check, initial_instances):
def get_instances_by_launch_template(props, lt_check, initial_instances):
new_instances = []
old_instances = []
# old instances are those that have the old launch template or version of the same launch templatec
# old instances are those that have the old launch template or version of the same launch template
if lt_check:
for i in props['instances']:
# Check if migrating from launch_config_name to launch_template_name first

@ -71,7 +71,7 @@ options:
version_added: "2.5"
tag_name:
description:
- When reuse_existing_ip_allowed is true, suppplement with this option to only reuse
- When reuse_existing_ip_allowed is true, supplement with this option to only reuse
an Elastic IP if it is tagged with tag_name.
default: 'no'
version_added: "2.9"

@ -502,7 +502,7 @@ class ElbManager(object):
self._set_cross_az_load_balancing()
if self._check_attribute_support('access_log'):
self._set_access_log()
# add sitcky options
# add sticky options
self.select_stickiness_policy()
# ensure backend server policies are correct

@ -69,7 +69,7 @@ network_interfaces:
public_ip: "52.1.0.63"
}
attachment:
description: Infor about attached ec2 instance
description: Info about attached ec2 instance
returned: always, empty dict if ENI is not attached
type: dict
sample: {

@ -123,7 +123,7 @@ options:
version_added: "2.4"
placement_tenancy:
description:
- Determines whether the instance runs on single-tenant harware or not.
- Determines whether the instance runs on single-tenant hardware or not.
default: 'default'
version_added: "2.4"

@ -507,7 +507,7 @@ class Ec2Metadata(object):
for (key, value) in dict.items():
self._data['%s:%s' % (new_uri, key.lower())] = value
except Exception:
self._data['%s' % (new_uri)] = content # not a stringifed JSON string
self._data['%s' % (new_uri)] = content # not a stringified JSON string
def fix_invalid_varnames(self, data):
"""Change ':'' and '-' to '_' to ensure valid template variable names"""

@ -179,7 +179,7 @@ vpc_id:
type: str
sample: "vpc-12345"
nat_gateway_addresses:
description: List of dictionairies containing the public_ip, network_interface_id, private_ip, and allocation_id.
description: List of dictionaries containing the public_ip, network_interface_id, private_ip, and allocation_id.
returned: In all cases.
type: str
sample: [

@ -139,7 +139,7 @@ vpc:
type: NoneType
sample: null
dhcp_options_id:
description: the id of the DHCP options assocaited with this VPC
description: the id of the DHCP options associated with this VPC
returned: always
type: str
sample: dopt-0fb8bd6b

@ -494,7 +494,7 @@ def ensure_vgw_absent(client, module):
else:
# Check that a name and type argument has been supplied if no vgw-id
if not module.params.get('name') or not module.params.get('type'):
module.fail_json(msg='A name and type is required when no vgw-id and a status of \'absent\' is suppled')
module.fail_json(msg='A name and type is required when no vgw-id and a status of \'absent\' is supplied')
existing_vgw = find_vgw(client, module)
if existing_vgw != [] and existing_vgw[0]['State'] != 'deleted':

@ -134,16 +134,16 @@ options:
version_added: 2.8
service_registries:
description:
- describes service disovery registries this service will register with.
- describes service discovery registries this service will register with.
required: false
version_added: 2.8
suboptions:
container_name:
description:
- container name for service disovery registration
- container name for service discovery registration
container_port:
description:
- container port for service disovery registration
- container port for service discovery registration
arn:
description:
- Service discovery registry ARN
@ -598,7 +598,7 @@ def main():
loadBalancer['containerPort'] = int(loadBalancer['containerPort'])
if update:
# check various parameters and boto versions and give a helpful erro in boto is not new enough for feature
# check various parameters and boto versions and give a helpful error in boto is not new enough for feature
if module.params['scheduling_strategy']:
if not module.botocore_at_least('1.10.37'):

@ -126,7 +126,7 @@ EXAMPLES = '''
'''
RETURN = '''
task:
description: details about the tast that was started
description: details about the task that was started
returned: success
type: complex
contains:

@ -372,7 +372,7 @@ def main():
existing_definitions_in_family = task_mgr.describe_task_definitions(module.params['family'])
if 'revision' in module.params and module.params['revision']:
# The definition specifies revision. We must gurantee that an active revision of that number will result from this.
# The definition specifies revision. We must guarantee that an active revision of that number will result from this.
revision = int(module.params['revision'])
# A revision has been explicitly specified. Attempt to locate a matching revision
@ -381,7 +381,7 @@ def main():
if existing and existing['status'] != "ACTIVE":
# We cannot reactivate an inactive revision
module.fail_json(msg="A task in family '%s' already exists for revsion %d, but it is inactive" % (family, revision))
module.fail_json(msg="A task in family '%s' already exists for revision %d, but it is inactive" % (family, revision))
elif not existing:
if not existing_definitions_in_family and revision != 1:
module.fail_json(msg="You have specified a revision of %d but a created revision would be 1" % revision)

@ -25,7 +25,7 @@ author:
options:
encrypt:
description:
- A boolean value that, if true, creates an encrypted file system. This can not be modfied after the file
- A boolean value that, if true, creates an encrypted file system. This can not be modified after the file
system is created.
type: bool
default: 'no'

@ -111,7 +111,7 @@ elasticache_clusters:
type: str
sample: in-sync
cache_parameter_group:
description: Contents of the Cache Parameter GGroup
description: Contents of the Cache Parameter Group
returned: always
type: complex
contains:

@ -486,7 +486,7 @@ class ElbManager(object):
self._set_cross_az_load_balancing()
if self._check_attribute_support('access_log'):
self._set_access_log()
# add sitcky options
# add sticky options
self.select_stickiness_policy()
# ensure backend server policies are correct

@ -159,7 +159,7 @@ instance_target_groups:
type: complex
contains:
target_id:
description: the target ID referiing to this instance
description: the target ID referring to this instance
type: str
returned: always
sample:

@ -265,9 +265,9 @@ def delete_dependencies_first(module, iam, name):
except boto.exception.BotoServerError as err:
error_msg = boto_exception(err)
if 'must detach all policies first' in error_msg:
module.fail_json(changed=changed, msg="All inline polices have been removed. Though it appears"
module.fail_json(changed=changed, msg="All inline policies have been removed. Though it appears"
"that %s has Managed Polices. This is not "
"currently supported by boto. Please detach the polices "
"currently supported by boto. Please detach the policies "
"through the console and try again." % name)
module.fail_json(changed=changed, msg="Failed to delete policies: %s" % err, exception=traceback.format_exc())
@ -494,9 +494,9 @@ def delete_group(module=None, iam=None, name=None):
except boto.exception.BotoServerError as err:
error_msg = boto_exception(err)
if ('must delete policies first') in error_msg:
module.fail_json(changed=changed, msg="All inline polices have been removed. Though it appears"
module.fail_json(changed=changed, msg="All inline policies have been removed. Though it appears"
"that %s has Managed Polices. This is not "
"currently supported by boto. Please detach the polices "
"currently supported by boto. Please detach the policies "
"through the console and try again." % name)
else:
module.fail_json(changed=changed, msg=str(error_msg))
@ -578,9 +578,9 @@ def delete_role(module, iam, name, role_list, prof_list):
except boto.exception.BotoServerError as err:
error_msg = boto_exception(err)
if ('must detach all policies first') in error_msg:
module.fail_json(changed=changed, msg="All inline polices have been removed. Though it appears"
module.fail_json(changed=changed, msg="All inline policies have been removed. Though it appears"
"that %s has Managed Polices. This is not "
"currently supported by boto. Please detach the polices "
"currently supported by boto. Please detach the policies "
"through the console and try again." % name)
else:
module.fail_json(changed=changed, msg=str(err))

@ -447,7 +447,7 @@ instance:
type: complex
contains:
name:
description: avaialbility zone
description: availability zone
returned: when RDS instance exists
type: string
sample: "eu-west-1b"

@ -142,7 +142,7 @@ snapshots:
type: str
sample: default:postgres-9-5
percent_progress:
description: Perecent progress of snapshot
description: Percent progress of snapshot
returned: always
type: int
sample: 100
@ -244,7 +244,7 @@ cluster_snapshots:
type: str
sample: shertel
percent_progress:
description: Perecent progress of snapshot
description: Percent progress of snapshot
returned: always
type: int
sample: 0

@ -96,7 +96,7 @@ options:
aliases: ['retention_period']
port:
description:
- which port the cluster is listining
- which port the cluster is listening
cluster_version:
description:
- which version the cluster should have
@ -172,7 +172,7 @@ cluster:
type: float
sample: 1430158536.308
status:
description: Stutus of the cluster.
description: Status of the cluster.
returned: success
type: str
sample: "available"
@ -226,7 +226,7 @@ from ansible.module_utils.aws.core import AnsibleAWSModule, is_boto3_error_code
def _collect_facts(resource):
"""Transfrom cluster information to dict."""
"""Transform cluster information to dict."""
facts = {
'identifier': resource['ClusterIdentifier'],
'status': resource['ClusterStatus'],
@ -516,7 +516,7 @@ def main():
final_cluster_snapshot_identifier = module.params.get('final_cluster_snapshot_identifier')
# can't use module basic required_if check for this case
if command == 'delete' and skip_final_cluster_snapshot is False and final_cluster_snapshot_identifier is None:
module.fail_json(msg="Need to specifiy final_cluster_snapshot_identifier if skip_final_cluster_snapshot is False")
module.fail_json(msg="Need to specify final_cluster_snapshot_identifier if skip_final_cluster_snapshot is False")
conn = module.client('redshift')

@ -85,7 +85,7 @@ options:
description:
- This is a string.
- Cache-Control header set on uploaded objects.
- Directives are separated by commmas.
- Directives are separated by commas.
required: false
version_added: "2.4"
delete:
@ -130,7 +130,7 @@ EXAMPLES = '''
RETURN = '''
filelist_initial:
description: file listing (dicts) from inital globbing
description: file listing (dicts) from initial globbing
returned: always
type: list
sample: [{

@ -195,7 +195,7 @@ options:
type: bool
subnet_resource_id:
description:
- Subnet associdated to the cluster.
- Subnet associated to the cluster.
version_added: "2.8"
extends_documentation_fragment:

@ -71,7 +71,7 @@ applicationsecuritygroups:
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationSecurityGroups/MyAsg"
location:
description:
- Loation of the application security group.
- Location of the application security group.
type: str
returned: always
sample: eastus

@ -242,7 +242,7 @@ EXAMPLES = '''
name: scale
resource_group: myResourceGroup
- name: Create an auto scale with compicated profile
- name: Create an auto scale with complicated profile
azure_rm_autoscale:
target: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets
/myVmss"

@ -371,7 +371,7 @@ class AzureRMCdnendpoint(AzureRMModuleBase):
if not response:
if self.started is None:
# If endpoint dosen't exist and no start/stop operation specified, create endpoint.
# If endpoint doesn't exist and no start/stop operation specified, create endpoint.
if self.origins is None:
self.fail("Origins is not provided when trying to create endpoint")
self.log("Need to create the Azure CDN endpoint")

@ -155,7 +155,7 @@ cdnendpoints:
sample: xxxxxxxx.blob.core.windows.net
origin_path:
description:
- A directory path on the origin that CDN can use to retreive content from.
- A directory path on the origin that CDN can use to retrieve content from.
type: str
sample: /pic/
tags:

@ -142,7 +142,7 @@ credentials:
sample: pass2value
tags:
description:
- Tags assigned to the resource. Dictionary of string:string parirs.
- Tags assigned to the resource. Dictionary of string:string pairs.
returned: always
type: dict
'''

@ -441,7 +441,7 @@ class AzureRMCosmosDBAccount(AzureRMModuleBase):
response = self.mgmt_client.database_accounts.delete(resource_group_name=self.resource_group,
account_name=self.name)
# This currently doesnt' work as there is a bug in SDK / Service
# This currently doesn't work as there is a bug in SDK / Service
# if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
# response = self.get_poller_result(response)
except CloudError as e:

@ -327,8 +327,7 @@ deployment:
- The Azure ID of the deployment.
type: str
returned: always
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myD
eployment"
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myDeployment"
instances:
description:
- Provides the public IP addresses for each VM instance.

@ -57,8 +57,7 @@ deployments:
- The identifier of the resource.
returned: always
type: str
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myD
eployment"
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Resources/deployments/myDeployment"
resource_group:
description:
- Resource group name.

@ -242,7 +242,7 @@ class AzureRMDtlEnvironment(AzureRMModuleBase):
return self.results
self.delete_environment()
# This currently doesnt' work as there is a bug in SDK / Service
# This currently doesn't work as there is a bug in SDK / Service
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
response = self.get_poller_result(response)
else:

@ -214,7 +214,7 @@ class AzureRMSchedule(AzureRMModuleBase):
return self.results
self.delete_schedule()
# This currently doesnt' work as there is a bug in SDK / Service
# This currently doesn't work as there is a bug in SDK / Service
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
response = self.get_poller_result(response)
else:

@ -208,7 +208,7 @@ class AzureRMDevTestLabVirtualNetwork(AzureRMModuleBase):
if self.check_mode:
return self.results
self.delete_virtualnetwork()
# This currently doesnt' work as there is a bug in SDK / Service
# This currently doesn't work as there is a bug in SDK / Service
if isinstance(response, LROPoller) or isinstance(response, AzureOperationPoller):
response = self.get_poller_result(response)
else:

@ -142,7 +142,7 @@ options:
type: int
disallowed:
description:
- Disalloved parameter values.
- Disallowed parameter values.
type: dict
suboptions:
disk_types:

@ -139,7 +139,7 @@ options:
connection_string:
description:
- Connection string of the custom endpoint.
- The connection string should have send priviledge.
- The connection string should have send privilege.
type: str
required: yes
container:

@ -387,7 +387,7 @@ class AzureRMKeyVaultKeyInfo(AzureRMModuleBase):
'''
Lists keys in specific key vault.
:return: deserialized keys, incldues key identifier, attributes and tags.
:return: deserialized keys, includes key identifier, attributes and tags.
'''
self.log("Get the key vaults in current subscription")
@ -429,7 +429,7 @@ class AzureRMKeyVaultKeyInfo(AzureRMModuleBase):
'''
Lists deleted keys in specific key vault.
:return: deserialized keys, incldues key identifier, attributes and tags.
:return: deserialized keys, includes key identifier, attributes and tags.
'''
self.log("Get the key vaults in current subscription")

@ -31,7 +31,7 @@ options:
managed_resource_id:
description:
- Manage a lock for the specified resource ID.
- Mututally exclusive with I(resource_group).
- Mutually exclusive with I(resource_group).
- If neither I(managed_resource_id) or I(resource_group) are specified, manage a lock for the current subscription.
- "'/subscriptions/{subscriptionId}' for subscriptions."
- "'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups."

@ -30,7 +30,7 @@ options:
description:
- ID of the resource where need to manage the lock.
- Get this via facts module.
- Cannot be set mutal with I(resource_group).
- Cannot be set mutual with I(resource_group).
- Manage subscription if both I(managed_resource_id) and I(resource_group) not defined.
- "'/subscriptions/{subscriptionId}' for subscriptions."
- "'/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups."
@ -41,7 +41,7 @@ options:
description:
- Resource group name where need to manage the lock.
- The lock is in the resource group level.
- Cannot be set mutal with I(managed_resource_id).
- Cannot be set mutual with I(managed_resource_id).
- Query subscription if both I(managed_resource_id) and I(resource_group) not defined.
- Can get all locks with 'child scope' in this resource group, use the I(managed_resource_id) in response for further management.
type: str

@ -164,7 +164,7 @@ response:
allowExtensionOperations:
description:
- Specifies whether extension operations should be allowed on the virtual machine.
- This may only be set to False when no extentions are present on the virtual machine.
- This may only be set to False when no extensions are present on the virtual machine.
type: bool
returned: always
sample: true
@ -176,7 +176,7 @@ response:
sample: myVM
requireGuestProvisionSignale:
description:
- Specifies the host require guest provision siganl or not.
- Specifies the host require guest provision signal or not.
type: bool
returned: always
sample: true
@ -188,7 +188,7 @@ response:
sample: []
linuxConfiguration:
description:
- Specifies the Linux operatiing system settings on the virtual machine.
- Specifies the Linux operating system settings on the virtual machine.
type: dict
returned: when OS type is Linux
sample: {
@ -203,14 +203,14 @@ response:
sample: Succeeded
vmID:
description:
- Specifies the VM unique ID whic is a 128-bits identifier that is encoded and stored in all Azure laaS VMs SMBIOS.
- Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure laaS VMs SMBIOS.
- It can be read using platform BIOS commands.
type: str
returned: always
sample: "eb86d9bb-6725-4787-a487-2e497d5b340c"
storageProfile:
description:
- Specifies the storae account type for the managed disk.
- Specifies the storage account type for the managed disk.
type: complex
returned: always
contains:

@ -28,7 +28,7 @@ options:
required: True
permissions:
description:
- Set of role definition peremissions.
- Set of role definition permissions.
- See U(https://docs.microsoft.com/en-us/azure/app-service/app-service-web-overview) for more info.
suboptions:
actions:
@ -250,7 +250,7 @@ class AzureRMRoleDefinition(AzureRMModuleBase):
elif self.state == 'absent':
if old_response:
self.log("Delete role defintion")
self.log("Delete role definition")
self.results['changed'] = True
if self.check_mode:

@ -24,7 +24,7 @@ description:
options:
scope:
description:
- The scope of role defintion.
- The scope of role definition.
required: True
id:
description:

@ -329,7 +329,7 @@ state:
sample: "westus"
name:
description:
- Name of the secrurity group.
- Name of the security group.
returned: always
type: str
sample: "mysecgroup"

@ -196,7 +196,7 @@ servicebuses:
sample: 1
count_details:
description:
- Message count deatils.
- Message count details.
returned: always
type: complex
contains:

@ -527,7 +527,7 @@ EXAMPLES = '''
image:
id: '{{image_id}}'
- name: Create VM with spcified OS disk size
- name: Create VM with specified OS disk size
azure_rm_virtualmachine:
resource_group: myResourceGroup
name: big-os-disk
@ -1884,7 +1884,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
return True
def delete_vm_storage(self, vhd_uris):
# FUTURE: figure out a cloud_env indepdendent way to delete these
# FUTURE: figure out a cloud_env independent way to delete these
for uri in vhd_uris:
self.log("Extracting info from blob uri '{0}'".format(uri))
try:

@ -697,7 +697,7 @@ class AzureRMWebAppSlots(AzureRMModuleBase):
return True
return False
# comparing deployment source with input, determine wheather it's changed
# comparing deployment source with input, determine whether it's changed
def is_deployment_source_changed(self, existing_webapp):
if self.deployment_source:
if self.deployment_source.get('url') \

@ -34,7 +34,7 @@ options:
required: False
state:
description:
- Whether to install or un-install the package. Currently it supports only "present" for install action.
- Whether to install or uninstall the package. Currently it supports only "present" for install action.
required: False
default: present
choices: ['present']

@ -16,7 +16,7 @@ DOCUMENTATION = '''
module: clc_firewall_policy
short_description: Create/delete/update firewall policies
description:
- Create or delete or update firewall polices on Centurylink Cloud
- Create or delete or update firewall policies on Centurylink Cloud
version_added: "2.0"
options:
location:

@ -49,7 +49,7 @@ options:
default: 1
count_group:
description:
- Required when exact_count is specified. The Server Group use to determine how many severs to deploy.
- Required when exact_count is specified. The Server Group use to determine how many servers to deploy.
cpu:
description:
- How many CPUs to provision on the server

@ -21,7 +21,7 @@ short_description: Manages servers on the cloudscale.ch IaaS service
description:
- Create, update, start, stop and delete servers on the cloudscale.ch IaaS service.
notes:
- Since version 2.8, I(uuid) and I(name) or not mututally exclusive anymore.
- Since version 2.8, I(uuid) and I(name) or not mutually exclusive anymore.
- If I(uuid) option is provided, it takes precedence over I(name) for server selection. This allows to update the server's name.
- If no I(uuid) option is provided, I(name) is used for server selection. If more than one server with this name exists, execution is aborted.
- Only the I(name) and I(flavor) are evaluated for the update.

@ -65,7 +65,7 @@ options:
type: list
tags:
description:
- Tags assosiated with the volume. Set this to C({}) to clear any tags.
- Tags associated with the volume. Set this to C({}) to clear any tags.
type: dict
version_added: '2.9'
extends_documentation_fragment: cloudscale
@ -149,7 +149,7 @@ state:
type: str
sample: present
tags:
description: Tags assosiated with the volume.
description: Tags associated with the volume.
returned: state == present
type: dict
sample: { 'project': 'my project' }
@ -183,7 +183,7 @@ class AnsibleCloudscaleVolume(AnsibleCloudscaleBase):
if self._module.params.get('uuid'):
self._module.fail_json(msg="The volume with UUID '%s' was not found "
"and we would create a new one with different UUID, "
"this is probaly not want you have asked for." % self._module.params.get('uuid'))
"this is probably not want you have asked for." % self._module.params.get('uuid'))
self._result['changed'] = True
data = {

@ -15,7 +15,7 @@ module: cs_zone_facts
short_description: Gathering facts of zones from Apache CloudStack based clouds.
description:
- Gathering facts from the API of a zone.
- Sets Ansible facts accessable by the key C(cloudstack_zone) and since version 2.6 also returns results.
- Sets Ansible facts accessible by the key C(cloudstack_zone) and since version 2.6 also returns results.
deprecated:
removed_in: "2.13"
why: Transformed into an info module.

@ -922,7 +922,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def stop_instance(self):
instance = self.get_instance()
# in check mode instance may not be instanciated
# in check mode instance may not be instantiated
if instance:
if instance['state'].lower() in ['stopping', 'stopped']:
return instance
@ -939,7 +939,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def start_instance(self):
instance = self.get_instance()
# in check mode instance may not be instanciated
# in check mode instance may not be instantiated
if instance:
if instance['state'].lower() in ['starting', 'running']:
return instance
@ -960,7 +960,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def restart_instance(self):
instance = self.get_instance()
# in check mode instance may not be instanciated
# in check mode instance may not be instantiated
if instance:
if instance['state'].lower() in ['running', 'starting']:
self.result['changed'] = True
@ -978,7 +978,7 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
def restore_instance(self):
instance = self.get_instance()
self.result['changed'] = True
# in check mode instance may not be instanciated
# in check mode instance may not be instantiated
if instance:
args = {}
args['templateid'] = self.get_template_or_iso(key='id')

@ -67,7 +67,7 @@ options:
description:
- List of tags. Tags are a list of dictionaries having keys I(key) and I(value).
- Tags can be used as an unique identifier for the IP Addresses.
- In this case, at least one of them must be unique to ensure idempontency.
- In this case, at least one of them must be unique to ensure idempotency.
type: list
aliases: [ tag ]
version_added: '2.6'
@ -80,7 +80,7 @@ extends_documentation_fragment: cloudstack
'''
EXAMPLES = '''
- name: Associate an IP address conditonally
- name: Associate an IP address conditionally
cs_ip_address:
network: My Network
register: ip_address

@ -189,7 +189,7 @@ EXAMPLES = '''
cs_network:
name: my network
clean_up: yes
state: restared
state: restarted
delegate_to: localhost
- name: Remove a network

@ -104,7 +104,7 @@ options:
aliases: [ service_provider ]
specify_ip_ranges:
description:
- Wheter the network offering supports specifying IP ranges.
- Whether the network offering supports specifying IP ranges.
- Defaulted to C(no) by the API if not specified.
type: bool
specify_vlan:
@ -178,7 +178,7 @@ service_offering_id:
type: str
sample: c5f7a5fc-43f8-11e5-a151-feff819cdc9f
max_connections:
description: The maximum number of concurrents connections to be handled by LB.
description: The maximum number of concurrent connections to be handled by LB.
returned: success
type: int
sample: 300

@ -152,7 +152,7 @@ class AnsibleCloudStackSshKey(AnsibleCloudStack):
# delete the ssh key with matching fingerprint but wrong name
args['name'] = ssh_key['name']
self.query_api('deleteSSHKeyPair', **args)
# First match for key retrievment will be the fingerprint.
# First match for key retrievement will be the fingerprint.
# We need to make another lookup if there is a key with identical name.
self.ssh_key = None
ssh_key = self.get_ssh_key()

@ -217,7 +217,7 @@ suitable_for_migration:
type: bool
sample: false
storage_capabilities:
description: Capabilities of the torage pool.
description: Capabilities of the storage pool.
returned: success
type: dict
sample: {"VOLUME_SNAPSHOT_QUIESCEVM": "false"}

@ -267,7 +267,7 @@ class AnsibleCloudStackVpc(AnsibleCloudStack):
vpc_name = self.module.params.get('name')
for v in vpcs:
if vpc_name in [v['name'], v['displaytext'], v['id']]:
# Fail if the identifyer matches more than one VPC
# Fail if the identifier matches more than one VPC
if self.vpc:
self.module.fail_json(msg="More than one VPC found with the provided identifyer: %s" % vpc_name)
else:

@ -28,7 +28,7 @@ version_added: "2.6"
options:
image_type:
description:
- Specifies the type of image information to be retrived.
- Specifies the type of image information to be retrieved.
- If set to C(application), then information are gathered related to all application images.
- If set to C(distribution), then information are gathered related to all distribution images.
- If set to C(private), then information are gathered related to all private images.

@ -67,7 +67,7 @@ options:
default: present
allow_expand:
description:
- Permit expansion of the target VLAN's network if the module parameters specify a larger network than the VLAN currently posesses?
- Permit expansion of the target VLAN's network if the module parameters specify a larger network than the VLAN currently possesses.
- If C(False), the module will fail under these conditions.
- This is intended to prevent accidental expansion of a VLAN's network (since this operation is not reversible).
type: bool

@ -476,7 +476,7 @@ options:
- For examples of the data structure and usage see EXAMPLES below.
- To remove a container from one or more networks, use the C(purge_networks) option.
- Note that as opposed to C(docker run ...), M(docker_container) does not remove the default
network if C(networks) is specified. You need to explicity use C(purge_networks) to enforce
network if C(networks) is specified. You need to explicitly use C(purge_networks) to enforce
the removal of the default network (and all other networks not explicitly mentioned in C(networks)).
type: list
suboptions:

@ -425,7 +425,7 @@ def create_record(module, gcdns, zone, record):
except LibcloudError:
# We deleted the old record, couldn't create the new record, and
# couldn't roll back. That really sucks. We'll dump the original
# record to the failure output so the user can resore it if
# record to the failure output so the user can restore it if
# necessary.
module.fail_json(
msg='error updating record, and could not restore original record, ' +

@ -125,7 +125,7 @@ def get_target_http_proxy(client, name, project_id=None):
"""
Get a Target HTTP Proxy from GCP.
:param client: An initialized GCE Compute Disovery resource.
:param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param name: Name of the Target Proxy.
@ -146,7 +146,7 @@ def create_target_http_proxy(client, params, project_id):
"""
Create a new Target_Proxy.
:param client: An initialized GCE Compute Disovery resource.
:param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param params: Dictionary of arguments from AnsibleModule.
@ -200,7 +200,7 @@ def update_target_http_proxy(client, target_proxy, params, name, project_id):
If the target_proxy has not changed, the update will not occur.
:param client: An initialized GCE Compute Disovery resource.
:param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param target_proxy: Name of the Target Proxy.

@ -15,9 +15,9 @@ DOCUMENTATION = '''
---
module: gcp_url_map
version_added: "2.4"
short_description: Create, Update or Destory a Url_Map.
short_description: Create, Update or Destroy a Url_Map.
description:
- Create, Update or Destory a Url_Map. See
- Create, Update or Destroy a Url_Map. See
U(https://cloud.google.com/compute/docs/load-balancing/http/url-map) for an overview.
More details on the Url_Map API can be found at
U(https://cloud.google.com/compute/docs/reference/latest/urlMaps#resource).
@ -330,7 +330,7 @@ def get_url_map(client, name, project_id=None):
"""
Get a Url_Map from GCP.
:param client: An initialized GCE Compute Disovery resource.
:param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param name: Name of the Url Map.
@ -353,7 +353,7 @@ def create_url_map(client, params, project_id):
"""
Create a new Url_Map.
:param client: An initialized GCE Compute Disovery resource.
:param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param params: Dictionary of arguments from AnsibleModule.
@ -379,7 +379,7 @@ def delete_url_map(client, name, project_id):
"""
Delete a Url_Map.
:param client: An initialized GCE Compute Disover resource.
:param client: An initialized GCE Compute Discover resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param name: Name of the Url Map.
@ -405,7 +405,7 @@ def update_url_map(client, url_map, params, name, project_id):
If the url_map has not changed, the update will not occur.
:param client: An initialized GCE Compute Disovery resource.
:param client: An initialized GCE Compute Discovery resource.
:type client: :class: `googleapiclient.discovery.Resource`
:param url_map: Name of the Url Map.

@ -18,10 +18,10 @@ version_added: '2.4'
short_description: Create, Update or Destroy GCE Labels.
description:
- Create, Update or Destroy GCE Labels on instances, disks, snapshots, etc.
When specifying the GCE resource, users may specifiy the full URL for
When specifying the GCE resource, users may specify the full URL for
the resource (its 'self_link'), or the individual parameters of the
resource (type, location, name). Examples for the two options can be
seen in the documentaion.
seen in the documentation.
See U(https://cloud.google.com/compute/docs/label-or-tag-resources) for
more information about GCE Labels. Labels are gradually being added to
more GCE resources, so this module will need to be updated as new

@ -40,7 +40,7 @@ description:
other resources to communicate with each other via internal, private IP addresses.
- Each VPC network is subdivided into subnets, and each subnet is contained within
a single region. You can have more than one subnet in a region for a given VPC network.
Each subnet has a contiguous private RFC1918 IP space. You create instances, containers,
Each subnet has a continuous private RFC1918 IP space. You create instances, containers,
and the like in these subnets.
- When you create an instance, you must create it in a subnet, and the instance draws
its internal IP address from that subnet.

@ -541,7 +541,7 @@ defaultObjectAcl:
type: str
id:
description:
- The ID of the bucket. For buckets, the id and name properities are the same.
- The ID of the bucket. For buckets, the id and name properties are the same.
returned: success
type: str
lifecycle:

@ -279,7 +279,7 @@ def main():
push_endpoint=mod_params['subscription'].get('push_endpoint', None))
if mod_params['state'] == 'absent':
# Remove the most granular resource. If subcription is specified
# Remove the most granular resource. If subscription is specified
# we remove it. If only topic is specified, that is what is removed.
# Note that a topic can be removed without first removing the subscription.
# TODO(supertom): Enhancement: Provide an option to only delete a topic

@ -41,7 +41,7 @@ options:
type: str
label_selector:
description:
- The label selector for the servery you want to get.
- The label selector for the server you want to get.
type: str
extends_documentation_fragment: hcloud
"""

@ -76,7 +76,7 @@ hcloud_ssh_key_info:
type: str
sample: 0e:e0:bd:c7:2d:1f:69:49:94:44:91:f1:19:fd:35:f3
public_key:
description: The acctual public key
description: The actual public key
returned: always
type: str
sample: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGpl/tnk74nnQJxxLAtutUApUZMRJxryKh7VXkNbd4g9 john@example.com"

@ -131,7 +131,7 @@ options:
- "If set, this module will wait for the PVC to become bound and CDI (if enabled) to finish its operation
before returning."
- "Used only if I(state) set to C(present)."
- "Unless used in conjuction with I(cdi_source), this might result in a timeout, as clusters may be configured
- "Unless used in conjunction with I(cdi_source), this might result in a timeout, as clusters may be configured
to not bind PVCs until first usage."
default: false
type: bool
@ -161,7 +161,7 @@ EXAMPLES = '''
cdi_source:
http:
url: https://www.source.example/path/of/data/vm.img
# If the URL points to a tar.gz containing the disk image, ucomment the line below:
# If the URL points to a tar.gz containing the disk image, uncomment the line below:
#content_type: archive
- name: Create a PVC as a clone from a different PVC

@ -68,7 +68,7 @@ requirements:
EXAMPLES = '''
- name: Create virtual machine replica set 'myvmir'
kubevirt_rs:
state: presnet
state: present
name: myvmir
namespace: vms
wait: true

@ -129,7 +129,7 @@ options:
Then, that value is substituted wherever the parameter is referenced. References can be defined in any
field in the objects list field. This is useful for generating random passwords or allowing the user to
supply a host name or other user-specific value that is required to customize the template."
- "More information can be foud at: U(https://docs.openshift.com/container-platform/3.6/dev_guide/templates.html#writing-parameters)"
- "More information can be found at: U(https://docs.openshift.com/container-platform/3.6/dev_guide/templates.html#writing-parameters)"
type: list
version:
description:
@ -335,7 +335,7 @@ class KubeVirtVMTemplate(KubeVirtRawModule):
if self.params.get('default_network'):
annotations['defaults.template.cnv.io/network'] = self.params.get('default_network').get('name')
# Proccess objects:
# Process objects:
self.client = self.get_api_client()
definition['objects'] = []
objects = self.params.get('objects') or []
@ -358,7 +358,7 @@ class KubeVirtVMTemplate(KubeVirtRawModule):
# Set kubevirt API version:
vm_definition['apiVersion'] = '%s/%s' % (API_GROUP, MAX_SUPPORTED_API_VERSION)
# Contruct k8s vm API object:
# Construct k8s vm API object:
vm_template = vm_definition['spec']['template']
dummy, vm_def = self.construct_vm_template_definition('VirtualMachine', vm_definition, vm_template, obj)

@ -52,7 +52,7 @@ options:
type: str
ephemeral:
description:
- If (true) ephemeral vitual machine will be created. When destroyed it won't be accessible again.
- If (true) ephemeral virtual machine will be created. When destroyed it won't be accessible again.
- Works only with C(state) I(present) and I(absent).
type: bool
default: false

@ -165,7 +165,7 @@ notes:
is "stopped" and the container does not exist it will be first created,
"started", the command executed, and then "stopped". If you use a "|"
in the variable you can use common script formatting within the variable
iteself The "container_command" option will always execute as BASH.
itself The "container_command" option will always execute as BASH.
When using "container_command" a log file is created in the /tmp/ directory
which contains both stdout and stderr of any command executed.
- If "archive" is **true** the system will attempt to create a compressed

@ -165,7 +165,7 @@ def delete_zone_domain(args=None, payload=None):
if not has_failed:
has_changed = True
memset_api = response.json()
# unset msg as we don't want to return unecessary info to the user.
# unset msg as we don't want to return unnecessary info to the user.
msg = None
return(has_failed, has_changed, memset_api, msg)

@ -72,7 +72,7 @@ options:
- Enable booting from specified disk. C((ide|sata|scsi|virtio)\d+)
clone:
description:
- Name of VM to be cloned. If C(vmid) is setted, C(clone) can take arbitrary value but required for intiating the clone.
- Name of VM to be cloned. If C(vmid) is setted, C(clone) can take arbitrary value but required for initiating the clone.
cores:
description:
- Specify number of cores per socket.
@ -302,7 +302,7 @@ options:
state:
description:
- Indicates desired state of the instance.
- If C(current), the current state of the VM will be fecthed. You can access it with C(results.status)
- If C(current), the current state of the VM will be fetched. You can access it with C(results.status)
choices: ['present', 'started', 'absent', 'stopped', 'restarted','current']
default: present
storage:

@ -41,7 +41,7 @@ options:
default: 127.0.0.1
port:
description:
- The port on which the API is reacheable.
- The port on which the API is reachable.
type: int
default: 443
insecure_api:

@ -44,7 +44,7 @@ options:
api_url:
description:
- Custom API URL. Overrides the
ONEANDONE_API_URL environement variable.
ONEANDONE_API_URL environment variable.
required: false
name:
description:

@ -65,7 +65,7 @@ options:
required: true
health_check_path:
description:
- Url to call for cheking. Required for HTTP health check. maxLength=1000
- Url to call for checking. Required for HTTP health check. maxLength=1000
required: false
health_check_parse:
description:

@ -249,7 +249,7 @@ class HostModule(OpenNebulaModule):
if desired_template_changes is None:
desired_template_changes = dict()
# complete the template with speficic ansible parameters
# complete the template with specific ansible parameters
if self.is_parameter('labels'):
desired_template_changes['LABELS'] = self.get_parameter('labels')

@ -49,7 +49,7 @@ options:
- Password of the user to login into OpenNebula OneFlow API server. If not set then the value of the C(ONEFLOW_PASSWORD) environment variable is used.
template_name:
description:
- Name of service template to use to create a new instace of a service
- Name of service template to use to create a new instance of a service
template_id:
description:
- ID of a service template to use to create a new instance of a service
@ -132,7 +132,7 @@ EXAMPLES = '''
public_network_id: 21
private_network_id: 26
# Instiate a new service 'foo' if the service doesn't already exist, otherwise do nothing
# Instantiate a new service 'foo' if the service doesn't already exist, otherwise do nothing
- one_service:
template_id: 53
service_name: 'foo'
@ -731,7 +731,7 @@ def main():
if template_id and state == 'absent':
module.fail_json(msg="State absent is not valid for template")
if template_id and state == 'present': # Intantiate a service
if template_id and state == 'present': # Instantiate a service
result = create_service_and_operation(module, auth, template_id, service_name, owner_id,
group_id, permissions, custom_attrs, unique, wait, wait_timeout)
else:

@ -167,8 +167,8 @@ options:
disk_saveas:
description:
- Creates an image from a VM disk.
- It is a dictionary where you have to specife C(name) of the new image.
- Optionally you can specife C(disk_id) of the disk you want to save. By default C(disk_id) is 0.
- It is a dictionary where you have to specify C(name) of the new image.
- Optionally you can specify C(disk_id) of the disk you want to save. By default C(disk_id) is 0.
- I(NOTE)':' This operation will only be performed on the first VM (if more than one VM ID is passed)
- and the VM has to be in the C(poweredoff) state.
- Also this operation will fail if an image with specified C(name) already exists.
@ -1386,7 +1386,7 @@ def main():
if exact_count is not None and exact_count < 0:
module.fail_json(msg='`exact_count` cannot be less than 0')
if count <= 0:
module.fail_json(msg='`count` has to be grater than 0')
module.fail_json(msg='`count` has to be greater than 0')
if permissions is not None:
import re

@ -182,7 +182,7 @@ def main():
network_id = cloud.get_network(name_or_id=network)["id"]
else:
network_id = None
# check if we have floting ip on given nat_destination network
# check if we have floating ip on given nat_destination network
if nat_destination:
nat_floating_addrs = [addr for addr in server.addresses.get(
cloud.get_network(nat_destination)['name'], [])

@ -64,7 +64,7 @@ ansible_facts:
type: str
sample: "x86_64"
local_gb:
description: Total size of local disk storage as updaed in node properties.
description: Total size of local disk storage as updated in node properties.
type: str
sample: "10"
cpus:

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save