fix spelling mistakes in several modules (#36296)

* fix more spelling mistakes

* fix spelling mistakes
This commit is contained in:
Sebastian Gumprich 2018-03-12 11:00:19 +01:00 committed by Dag Wieers
commit 16c564c4b4
21 changed files with 33 additions and 33 deletions

View file

@ -108,7 +108,7 @@ def core(module):
if cert['name'] == name:
module.fail_json(msg="Certificate name %s already exists" % name)
# Certificate does not exists, let us create it
# Certificate does not exist, let us create it
cert_data = dict(name=name,
private_key=module.params['private_key'],
leaf_certificate=module.params['leaf_certificate'])

View file

@ -60,7 +60,7 @@ EXAMPLES = '''
name: production
state: present
- name: tag a resource; creating the tag if it does not exists
- name: tag a resource; creating the tag if it does not exist
digital_ocean_tag:
name: "{{ item }}"
resource_id: "73333005"

View file

@ -387,7 +387,7 @@ def handle_delete(module, gs, bucket, obj):
if key_check(module, gs, bucket, obj):
module.exit_json(msg="Object has been deleted.", changed=delete_key(module, gs, bucket, obj))
else:
module.exit_json(msg="Object does not exists.", changed=False)
module.exit_json(msg="Object does not exist.", changed=False)
else:
module.exit_json(msg="Bucket does not exist.", changed=False)
else:

View file

@ -439,7 +439,7 @@ class StorageDomainModule(BaseModule):
# Get data center object of the storage domain:
dcs_service = self._connection.system_service().data_centers_service()
# Search the data_center name, if it does not exists, try to search by guid.
# Search the data_center name, if it does not exist, try to search by guid.
dc = search_by_name(dcs_service, dc_name)
if dc is None:
dc = get_entity(dcs_service.service(dc_name))

View file

@ -986,7 +986,7 @@ class PyVmomiHelper(PyVmomi):
" a VLAN name under VM network list.")
if 'name' in network and find_obj(self.content, [vim.Network], network['name']) is None:
self.module.fail_json(msg="Network '%(name)s' does not exists" % network)
self.module.fail_json(msg="Network '%(name)s' does not exist." % network)
elif 'vlan' in network:
dvps = self.cache.get_all_objs(self.content, [vim.dvs.DistributedVirtualPortgroup])
for dvp in dvps:
@ -1333,7 +1333,7 @@ class PyVmomiHelper(PyVmomi):
ident.guiRunOnce.commandList = self.params['customization']['runonce']
else:
# FIXME: We have no clue whether this non-Windows OS is actually Linux, hence it might fail !
# FIXME: We have no clue whether this non-Windows OS is actually Linux, hence it might fail!
# For Linux guest OS, use LinuxPrep
# https://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.vm.customization.LinuxPrep.html
@ -1352,7 +1352,7 @@ class PyVmomiHelper(PyVmomi):
self.customspec.identity = ident
def get_vm_scsi_controller(self, vm_obj):
# If vm_obj doesn't exists no SCSI controller to find
# If vm_obj doesn't exist there is no SCSI controller to find
if vm_obj is None:
return None

View file

@ -192,7 +192,7 @@ class VMwareLocalRoleManager(PyVmomi):
failIfUsed=self.force)
except vim.fault.NotFound as e:
self.module.fail_json(msg="Failed to remove a role %s as the user specified role name "
"does not exists." % self.role_name,
"does not exist." % self.role_name,
details=e.msg)
except vim.fault.RemoveFailed as e:
msg = "Failed to remove a role %s as the user specified role name." % self.role_name

View file

@ -231,7 +231,7 @@ class VmwareDrs(PyVmomi):
# Create
def create(self):
"""
Function to create a DRS rule if rule does not exists
Function to create a DRS rule if rule does not exist
"""
rule_obj = self.get_rule_key_by_name(rule_name=self.rule_name)
if rule_obj is not None: