fix spelling mistakes in several modules (#36296)
* fix more spelling mistakes * fix spelling mistakes
This commit is contained in:
parent
a50db37c6c
commit
16c564c4b4
21 changed files with 33 additions and 33 deletions
|
@ -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'])
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -51,7 +51,7 @@ EXAMPLES = '''
|
|||
ipa_user: admin
|
||||
ipa_pass: topsecret
|
||||
|
||||
- name: Ensure sudo command group does not exists
|
||||
- name: Ensure sudo command group does not exist
|
||||
ipa_sudocmdgroup:
|
||||
name: group01
|
||||
state: absent
|
||||
|
|
|
@ -242,8 +242,8 @@ def grafana_delete_dashboard(module, data):
|
|||
else:
|
||||
raise GrafanaAPIException('Unable to update the dashboard %s : %s' % (data['slug'], info))
|
||||
else:
|
||||
# dashboard does not exists : do nothing
|
||||
result = {'msg': "Dashboard %s does not exists" % data['slug'],
|
||||
# dashboard does not exist, do nothing
|
||||
result = {'msg': "Dashboard %s does not exist." % data['slug'],
|
||||
'changed': False,
|
||||
'slug': data['slug']}
|
||||
|
||||
|
@ -274,7 +274,7 @@ def grafana_export_dashboard(module, data):
|
|||
'slug': data['slug'],
|
||||
'changed': True}
|
||||
else:
|
||||
result = {'msg': "Dashboard %s does not exists" % data['slug'],
|
||||
result = {'msg': "Dashboard %s does not exist." % data['slug'],
|
||||
'slug': data['slug'],
|
||||
'changed': False}
|
||||
|
||||
|
|
|
@ -429,8 +429,8 @@ def grafana_delete_datasource(module, data):
|
|||
else:
|
||||
raise GrafanaAPIException('Unable to update the datasource id %s : %s' % (ds['id'], info))
|
||||
else:
|
||||
# datasource does not exists : do nothing
|
||||
result = {'msg': "Datasource %s does not exists" % data['name'],
|
||||
# datasource does not exist, do nothing
|
||||
result = {'msg': "Datasource %s does not exist." % data['name'],
|
||||
'changed': False,
|
||||
'id': 0,
|
||||
'name': data['name']}
|
||||
|
|
|
@ -809,15 +809,15 @@ class Interface(object):
|
|||
# delete interface
|
||||
self.delete_interface(self.interface)
|
||||
else:
|
||||
# interface does not exists
|
||||
# interface does not exist
|
||||
self.module.fail_json(
|
||||
msg='Error: interface does not exists.')
|
||||
msg='Error: interface does not exist.')
|
||||
|
||||
else: # default
|
||||
if not self.intf_info:
|
||||
# error, interface does not exists
|
||||
# error, interface does not exist
|
||||
self.module.fail_json(
|
||||
msg='Error: interface does not exists.')
|
||||
msg='Error: interface does not exist.')
|
||||
else:
|
||||
self.default_interface(self.interface)
|
||||
|
||||
|
|
|
@ -472,7 +472,7 @@ class Mtu(object):
|
|||
# get interface info
|
||||
self.intf_info = self.get_interface_dict(self.interface)
|
||||
if not self.intf_info:
|
||||
self.module.fail_json(msg='Error: interface does not exists.')
|
||||
self.module.fail_json(msg='Error: interface does not exist.')
|
||||
|
||||
# check interface
|
||||
if self.mtu and self.intf_info['isL2SwitchPort'] == 'true':
|
||||
|
|
|
@ -719,7 +719,7 @@ class SwitchPort(object):
|
|||
# get interface info
|
||||
self.intf_info = self.get_interface_dict(self.interface)
|
||||
if not self.intf_info:
|
||||
self.module.fail_json(msg='Error: Interface does not exists.')
|
||||
self.module.fail_json(msg='Error: Interface does not exist.')
|
||||
|
||||
if not self.is_l2switchport():
|
||||
self.module.fail_json(
|
||||
|
@ -764,7 +764,7 @@ class SwitchPort(object):
|
|||
|
||||
self.check_params()
|
||||
if not self.intf_info:
|
||||
self.module.fail_json(msg='Error: interface does not exists.')
|
||||
self.module.fail_json(msg='Error: interface does not exist.')
|
||||
|
||||
self.get_existing()
|
||||
self.get_proposed()
|
||||
|
|
|
@ -16,7 +16,7 @@ DOCUMENTATION = '''
|
|||
module: gitlab_group
|
||||
short_description: Creates/updates/deletes Gitlab Groups
|
||||
description:
|
||||
- When the group does not exists in Gitlab, it will be created.
|
||||
- When the group does not exist in Gitlab, it will be created.
|
||||
- When the group does exists and state=absent, the group will be deleted.
|
||||
version_added: "2.1"
|
||||
author: "Werner Dijkerman (@dj-wasabi)"
|
||||
|
@ -209,7 +209,7 @@ def main():
|
|||
module.exit_json(changed=True, result="Successfully deleted group %s" % group_name)
|
||||
else:
|
||||
if state == "absent":
|
||||
module.exit_json(changed=False, result="Group deleted or does not exists")
|
||||
module.exit_json(changed=False, result="Group deleted or does not exist")
|
||||
else:
|
||||
if group_exists:
|
||||
module.exit_json(changed=False)
|
||||
|
|
|
@ -16,7 +16,7 @@ DOCUMENTATION = '''
|
|||
module: gitlab_project
|
||||
short_description: Creates/updates/deletes Gitlab Projects
|
||||
description:
|
||||
- When the project does not exists in Gitlab, it will be created.
|
||||
- When the project does not exist in Gitlab, it will be created.
|
||||
- When the project does exists and state=absent, the project will be deleted.
|
||||
- When changes are made to the project, the project will be updated.
|
||||
version_added: "2.1"
|
||||
|
@ -397,7 +397,7 @@ def main():
|
|||
module.exit_json(changed=True, result="Successfully deleted project %s" % project_name)
|
||||
else:
|
||||
if state == "absent":
|
||||
module.exit_json(changed=False, result="Project deleted or does not exists")
|
||||
module.exit_json(changed=False, result="Project deleted or does not exist")
|
||||
else:
|
||||
if project.createOrUpdateProject(project_exists, group_name, import_url, arguments):
|
||||
module.exit_json(changed=True, result="Successfully created or updated the project %s" % project_name)
|
||||
|
|
|
@ -16,7 +16,7 @@ DOCUMENTATION = '''
|
|||
module: gitlab_user
|
||||
short_description: Creates/updates/deletes Gitlab Users
|
||||
description:
|
||||
- When the user does not exists in Gitlab, it will be created.
|
||||
- When the user does not exist in Gitlab, it will be created.
|
||||
- When the user does exists and state=absent, the user will be deleted.
|
||||
- When changes are made to user, the user will be updated.
|
||||
version_added: "2.1"
|
||||
|
@ -352,7 +352,7 @@ def main():
|
|||
|
||||
# Check if user exists, if not exists and state = absent, we exit nicely.
|
||||
if not user.existsUser(user_username) and state == "absent":
|
||||
module.exit_json(changed=False, result="User already deleted or does not exists")
|
||||
module.exit_json(changed=False, result="User already deleted or does not exist")
|
||||
else:
|
||||
# User exists,
|
||||
if state == "absent":
|
||||
|
|
|
@ -236,7 +236,7 @@ class OSXDefaults(object):
|
|||
# First try to find out the type
|
||||
rc, out, err = self.module.run_command(self._base_command() + ["read-type", self.domain, self.key])
|
||||
|
||||
# If RC is 1, the key does not exists
|
||||
# If RC is 1, the key does not exist
|
||||
if rc == 1:
|
||||
return None
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ notes:
|
|||
EXAMPLES = '''
|
||||
# Example playbook entries using the ejabberd_user module to manage users state.
|
||||
|
||||
- name: create a user if it does not exists
|
||||
- name: create a user if it does not exist
|
||||
ejabberd_user:
|
||||
username: test
|
||||
host: server
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
- result is not changed
|
||||
|
||||
|
||||
- name: When in check mode, and deleting a policy that does not exists
|
||||
- name: When in check mode, and deleting a policy that does not exist
|
||||
ecs_ecr:
|
||||
region: '{{ ec2_region }}'
|
||||
name: '{{ ecr_name }}'
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
assert:
|
||||
that:
|
||||
- "not non_existent_network.changed"
|
||||
- "\"Network 'Non existent VM' does not exists\" in non_existent_network.msg"
|
||||
- "\"Network 'Non existent VM' does not exist\" in non_existent_network.msg"
|
||||
|
||||
- name: create new VMs with network and with only IP
|
||||
vmware_guest:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
name: xWebAdministration
|
||||
state: present
|
||||
|
||||
- name: ensure IIS website does not exists
|
||||
- name: ensure IIS website does not exist
|
||||
win_iis_website:
|
||||
name: Ansible DSC Test
|
||||
state: absent
|
||||
|
|
Loading…
Add table
Reference in a new issue