mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
spelling fixes (non-trivial, changing messages) (#25094)
Multiple spell fixes in single commit. Taking over existing PR as per comment - https://github.com/ansible/ansible/pull/23645#issuecomment-304312275 Original Author: klemens <ka7@github.com> Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
John R Barker
parent
9d8aa43c67
commit
07be5f2b67
@@ -180,7 +180,7 @@ def copy_image(module, ec2):
|
||||
|
||||
module.exit_json(changed=True, image_id=image_id)
|
||||
except WaiterError as we:
|
||||
module.fail_json(msg='An error occured waiting for the image to become available. (%s)' % we.reason)
|
||||
module.fail_json(msg='An error occurred waiting for the image to become available. (%s)' % we.reason)
|
||||
except ClientError as ce:
|
||||
module.fail_json(msg=ce.message)
|
||||
except NoCredentialsError:
|
||||
|
||||
@@ -701,7 +701,7 @@ class AzureRMSecurityGroup(AzureRMModuleBase):
|
||||
parameters)
|
||||
result = self.get_poller_result(poller)
|
||||
except AzureHttpError as exc:
|
||||
self.fail("Error creating/upating security group {0} - {1}".format(self.name, str(exc)))
|
||||
self.fail("Error creating/updating security group {0} - {1}".format(self.name, str(exc)))
|
||||
return create_network_security_group_dict(result)
|
||||
|
||||
def delete(self):
|
||||
|
||||
@@ -251,11 +251,11 @@ class AnsibleCloudStackIso(AnsibleCloudStack):
|
||||
args['ispublic'] = self.module.params.get('is_public')
|
||||
|
||||
if args['bootable'] and not args['ostypeid']:
|
||||
self.module.fail_json(msg="OS type 'os_type' is requried if 'bootable=true'.")
|
||||
self.module.fail_json(msg="OS type 'os_type' is required if 'bootable=true'.")
|
||||
|
||||
args['url'] = self.module.params.get('url')
|
||||
if not args['url']:
|
||||
self.module.fail_json(msg="URL is requried.")
|
||||
self.module.fail_json(msg="URL is required.")
|
||||
|
||||
self.result['changed'] = True
|
||||
if not self.module.check_mode:
|
||||
|
||||
@@ -23,7 +23,7 @@ DOCUMENTATION = '''
|
||||
---
|
||||
module: gce_instance_template
|
||||
version_added: "2.3"
|
||||
short_description: create or destroy intance templates of Compute Engine of GCP.
|
||||
short_description: create or destroy instance templates of Compute Engine of GCP.
|
||||
description:
|
||||
- Creates or destroy Google instance templates
|
||||
of Compute Engine of Google Cloud Platform.
|
||||
@@ -87,7 +87,7 @@ options:
|
||||
If C(ephemeral), a new non-static address will be
|
||||
used. If C(None), then no external address will
|
||||
be used. To use an existing static IP address
|
||||
specify adress name.
|
||||
specify address name.
|
||||
default: "ephemeral"
|
||||
service_account_email:
|
||||
description:
|
||||
@@ -495,7 +495,7 @@ def check_if_system_state_would_be_changed(module, gce):
|
||||
output = 'nothing to do for instance template {} '.format(name)
|
||||
if current_state == "present":
|
||||
if changed:
|
||||
output = 'instance template {} will be detroyed'.format(name)
|
||||
output = 'instance template {} will be destroyed'.format(name)
|
||||
else:
|
||||
output = 'nothing to do for instance template {} '.format(name)
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ options:
|
||||
upload_image_path:
|
||||
description:
|
||||
- "Path to disk image, which should be uploaded."
|
||||
- "Note that currently we support only compability version 0.10 of the qcow disk."
|
||||
- "Note that currently we support only compatibility version 0.10 of the qcow disk."
|
||||
- "Note that you must have an valid oVirt/RHV engine CA in your system trust store
|
||||
or you must provide it in C(ca_file) parameter."
|
||||
- "Note that there is no reliable way to achieve idempotency, so
|
||||
@@ -308,7 +308,7 @@ def transfer(connection, module, direction, transfer_func):
|
||||
otypes.ImageTransferPhase.CANCELLED,
|
||||
]:
|
||||
raise Exception(
|
||||
"Error occured while uploading image. The transfer is in %s" % transfer.phase
|
||||
"Error occurred while uploading image. The transfer is in %s" % transfer.phase
|
||||
)
|
||||
if module.params.get('logical_unit'):
|
||||
disks_service = connection.system_service().disks_service()
|
||||
|
||||
Reference in New Issue
Block a user