* fix more spelling mistakes
* fix spelling mistakes
(cherry picked from commit 16c564c4b4d5ddf6cd10da68129c3f401971b104)
... | ... |
@@ -118,7 +118,7 @@ def core(module): |
118 | 118 |
if cert['name'] == name: |
119 | 119 |
module.fail_json(msg="Certificate name %s already exists" % name) |
120 | 120 |
|
121 |
- # Certificate does not exists, let us create it |
|
121 |
+ # Certificate does not exist, let us create it |
|
122 | 122 |
cert_data = dict(name=name, |
123 | 123 |
private_key=module.params['private_key'], |
124 | 124 |
leaf_certificate=module.params['leaf_certificate']) |
... | ... |
@@ -63,7 +63,7 @@ EXAMPLES = ''' |
63 | 63 |
name: production |
64 | 64 |
state: present |
65 | 65 |
|
66 |
-- name: tag a resource; creating the tag if it does not exists |
|
66 |
+- name: tag a resource; creating the tag if it does not exist |
|
67 | 67 |
digital_ocean_tag: |
68 | 68 |
name: "{{ item }}" |
69 | 69 |
resource_id: "73333005" |
... | ... |
@@ -387,7 +387,7 @@ def handle_delete(module, gs, bucket, obj): |
387 | 387 |
if key_check(module, gs, bucket, obj): |
388 | 388 |
module.exit_json(msg="Object has been deleted.", changed=delete_key(module, gs, bucket, obj)) |
389 | 389 |
else: |
390 |
- module.exit_json(msg="Object does not exists.", changed=False) |
|
390 |
+ module.exit_json(msg="Object does not exist.", changed=False) |
|
391 | 391 |
else: |
392 | 392 |
module.exit_json(msg="Bucket does not exist.", changed=False) |
393 | 393 |
else: |
... | ... |
@@ -433,7 +433,7 @@ class StorageDomainModule(BaseModule): |
433 | 433 |
# Get data center object of the storage domain: |
434 | 434 |
dcs_service = self._connection.system_service().data_centers_service() |
435 | 435 |
|
436 |
- # Search the data_center name, if it does not exists, try to search by guid. |
|
436 |
+ # Search the data_center name, if it does not exist, try to search by guid. |
|
437 | 437 |
dc = search_by_name(dcs_service, dc_name) |
438 | 438 |
if dc is None: |
439 | 439 |
dc = get_entity(dcs_service.service(dc_name)) |
... | ... |
@@ -910,7 +910,7 @@ class PyVmomiHelper(PyVmomi): |
910 | 910 |
" a VLAN name under VM network list.") |
911 | 911 |
|
912 | 912 |
if 'name' in network and find_obj(self.content, [vim.Network], network['name']) is None: |
913 |
- self.module.fail_json(msg="Network '%(name)s' does not exists" % network) |
|
913 |
+ self.module.fail_json(msg="Network '%(name)s' does not exist." % network) |
|
914 | 914 |
elif 'vlan' in network: |
915 | 915 |
dvps = self.cache.get_all_objs(self.content, [vim.dvs.DistributedVirtualPortgroup]) |
916 | 916 |
for dvp in dvps: |
... | ... |
@@ -1177,7 +1177,7 @@ class PyVmomiHelper(PyVmomi): |
1177 | 1177 |
ident.guiRunOnce.commandList = self.params['customization']['runonce'] |
1178 | 1178 |
|
1179 | 1179 |
else: |
1180 |
- # FIXME: We have no clue whether this non-Windows OS is actually Linux, hence it might fail ! |
|
1180 |
+ # FIXME: We have no clue whether this non-Windows OS is actually Linux, hence it might fail! |
|
1181 | 1181 |
|
1182 | 1182 |
# For Linux guest OS, use LinuxPrep |
1183 | 1183 |
# https://pubs.vmware.com/vi3/sdk/ReferenceGuide/vim.vm.customization.LinuxPrep.html |
... | ... |
@@ -1196,7 +1196,7 @@ class PyVmomiHelper(PyVmomi): |
1196 | 1196 |
self.customspec.identity = ident |
1197 | 1197 |
|
1198 | 1198 |
def get_vm_scsi_controller(self, vm_obj): |
1199 |
- # If vm_obj doesn't exists no SCSI controller to find |
|
1199 |
+ # If vm_obj doesn't exist there is no SCSI controller to find |
|
1200 | 1200 |
if vm_obj is None: |
1201 | 1201 |
return None |
1202 | 1202 |
|
... | ... |
@@ -190,7 +190,7 @@ class VMwareLocalRoleManager(PyVmomi): |
190 | 190 |
failIfUsed=self.force) |
191 | 191 |
except vim.fault.NotFound as e: |
192 | 192 |
self.module.fail_json(msg="Failed to remove a role %s as the user specified role name " |
193 |
- "does not exists." % self.role_name, |
|
193 |
+ "does not exist." % self.role_name, |
|
194 | 194 |
details=e.msg) |
195 | 195 |
except vim.fault.RemoveFailed as e: |
196 | 196 |
msg = "Failed to remove a role %s as the user specified role name." % self.role_name |
... | ... |
@@ -232,7 +232,7 @@ class VmwareDrs(PyVmomi): |
232 | 232 |
# Create |
233 | 233 |
def create(self): |
234 | 234 |
""" |
235 |
- Function to create a DRS rule if rule does not exists |
|
235 |
+ Function to create a DRS rule if rule does not exist |
|
236 | 236 |
""" |
237 | 237 |
rule_obj = self.get_rule_key_by_name(rule_name=self.rule_name) |
238 | 238 |
if rule_obj is not None: |
... | ... |
@@ -242,8 +242,8 @@ def grafana_delete_dashboard(module, data): |
242 | 242 |
else: |
243 | 243 |
raise GrafanaAPIException('Unable to update the dashboard %s : %s' % (data['slug'], info)) |
244 | 244 |
else: |
245 |
- # dashboard does not exists : do nothing |
|
246 |
- result = {'msg': "Dashboard %s does not exists" % data['slug'], |
|
245 |
+ # dashboard does not exist, do nothing |
|
246 |
+ result = {'msg': "Dashboard %s does not exist." % data['slug'], |
|
247 | 247 |
'changed': False, |
248 | 248 |
'slug': data['slug']} |
249 | 249 |
|
... | ... |
@@ -274,7 +274,7 @@ def grafana_export_dashboard(module, data): |
274 | 274 |
'slug': data['slug'], |
275 | 275 |
'changed': True} |
276 | 276 |
else: |
277 |
- result = {'msg': "Dashboard %s does not exists" % data['slug'], |
|
277 |
+ result = {'msg': "Dashboard %s does not exist." % data['slug'], |
|
278 | 278 |
'slug': data['slug'], |
279 | 279 |
'changed': False} |
280 | 280 |
|
... | ... |
@@ -429,8 +429,8 @@ def grafana_delete_datasource(module, data): |
429 | 429 |
else: |
430 | 430 |
raise GrafanaAPIException('Unable to update the datasource id %s : %s' % (ds['id'], info)) |
431 | 431 |
else: |
432 |
- # datasource does not exists : do nothing |
|
433 |
- result = {'msg': "Datasource %s does not exists" % data['name'], |
|
432 |
+ # datasource does not exist, do nothing |
|
433 |
+ result = {'msg': "Datasource %s does not exist." % data['name'], |
|
434 | 434 |
'changed': False, |
435 | 435 |
'id': 0, |
436 | 436 |
'name': data['name']} |
... | ... |
@@ -809,15 +809,15 @@ class Interface(object): |
809 | 809 |
# delete interface |
810 | 810 |
self.delete_interface(self.interface) |
811 | 811 |
else: |
812 |
- # interface does not exists |
|
812 |
+ # interface does not exist |
|
813 | 813 |
self.module.fail_json( |
814 |
- msg='Error: interface does not exists.') |
|
814 |
+ msg='Error: interface does not exist.') |
|
815 | 815 |
|
816 | 816 |
else: # default |
817 | 817 |
if not self.intf_info: |
818 |
- # error, interface does not exists |
|
818 |
+ # error, interface does not exist |
|
819 | 819 |
self.module.fail_json( |
820 |
- msg='Error: interface does not exists.') |
|
820 |
+ msg='Error: interface does not exist.') |
|
821 | 821 |
else: |
822 | 822 |
self.default_interface(self.interface) |
823 | 823 |
|
... | ... |
@@ -472,7 +472,7 @@ class Mtu(object): |
472 | 472 |
# get interface info |
473 | 473 |
self.intf_info = self.get_interface_dict(self.interface) |
474 | 474 |
if not self.intf_info: |
475 |
- self.module.fail_json(msg='Error: interface does not exists.') |
|
475 |
+ self.module.fail_json(msg='Error: interface does not exist.') |
|
476 | 476 |
|
477 | 477 |
# check interface |
478 | 478 |
if self.mtu and self.intf_info['isL2SwitchPort'] == 'true': |
... | ... |
@@ -719,7 +719,7 @@ class SwitchPort(object): |
719 | 719 |
# get interface info |
720 | 720 |
self.intf_info = self.get_interface_dict(self.interface) |
721 | 721 |
if not self.intf_info: |
722 |
- self.module.fail_json(msg='Error: Interface does not exists.') |
|
722 |
+ self.module.fail_json(msg='Error: Interface does not exist.') |
|
723 | 723 |
|
724 | 724 |
if not self.is_l2switchport(): |
725 | 725 |
self.module.fail_json( |
... | ... |
@@ -764,7 +764,7 @@ class SwitchPort(object): |
764 | 764 |
|
765 | 765 |
self.check_params() |
766 | 766 |
if not self.intf_info: |
767 |
- self.module.fail_json(msg='Error: interface does not exists.') |
|
767 |
+ self.module.fail_json(msg='Error: interface does not exist.') |
|
768 | 768 |
|
769 | 769 |
self.get_existing() |
770 | 770 |
self.get_proposed() |
... | ... |
@@ -16,7 +16,7 @@ DOCUMENTATION = ''' |
16 | 16 |
module: gitlab_group |
17 | 17 |
short_description: Creates/updates/deletes Gitlab Groups |
18 | 18 |
description: |
19 |
- - When the group does not exists in Gitlab, it will be created. |
|
19 |
+ - When the group does not exist in Gitlab, it will be created. |
|
20 | 20 |
- When the group does exists and state=absent, the group will be deleted. |
21 | 21 |
version_added: "2.1" |
22 | 22 |
author: "Werner Dijkerman (@dj-wasabi)" |
... | ... |
@@ -209,7 +209,7 @@ def main(): |
209 | 209 |
module.exit_json(changed=True, result="Successfully deleted group %s" % group_name) |
210 | 210 |
else: |
211 | 211 |
if state == "absent": |
212 |
- module.exit_json(changed=False, result="Group deleted or does not exists") |
|
212 |
+ module.exit_json(changed=False, result="Group deleted or does not exist") |
|
213 | 213 |
else: |
214 | 214 |
if group_exists: |
215 | 215 |
module.exit_json(changed=False) |
... | ... |
@@ -16,7 +16,7 @@ DOCUMENTATION = ''' |
16 | 16 |
module: gitlab_project |
17 | 17 |
short_description: Creates/updates/deletes Gitlab Projects |
18 | 18 |
description: |
19 |
- - When the project does not exists in Gitlab, it will be created. |
|
19 |
+ - When the project does not exist in Gitlab, it will be created. |
|
20 | 20 |
- When the project does exists and state=absent, the project will be deleted. |
21 | 21 |
- When changes are made to the project, the project will be updated. |
22 | 22 |
version_added: "2.1" |
... | ... |
@@ -392,7 +392,7 @@ def main(): |
392 | 392 |
module.exit_json(changed=True, result="Successfully deleted project %s" % project_name) |
393 | 393 |
else: |
394 | 394 |
if state == "absent": |
395 |
- module.exit_json(changed=False, result="Project deleted or does not exists") |
|
395 |
+ module.exit_json(changed=False, result="Project deleted or does not exist") |
|
396 | 396 |
else: |
397 | 397 |
if project.createOrUpdateProject(project_exists, group_name, import_url, arguments): |
398 | 398 |
module.exit_json(changed=True, result="Successfully created or updated the project %s" % project_name) |
... | ... |
@@ -16,7 +16,7 @@ DOCUMENTATION = ''' |
16 | 16 |
module: gitlab_user |
17 | 17 |
short_description: Creates/updates/deletes Gitlab Users |
18 | 18 |
description: |
19 |
- - When the user does not exists in Gitlab, it will be created. |
|
19 |
+ - When the user does not exist in Gitlab, it will be created. |
|
20 | 20 |
- When the user does exists and state=absent, the user will be deleted. |
21 | 21 |
- When changes are made to user, the user will be updated. |
22 | 22 |
version_added: "2.1" |
... | ... |
@@ -352,7 +352,7 @@ def main(): |
352 | 352 |
|
353 | 353 |
# Check if user exists, if not exists and state = absent, we exit nicely. |
354 | 354 |
if not user.existsUser(user_username) and state == "absent": |
355 |
- module.exit_json(changed=False, result="User already deleted or does not exists") |
|
355 |
+ module.exit_json(changed=False, result="User already deleted or does not exist") |
|
356 | 356 |
else: |
357 | 357 |
# User exists, |
358 | 358 |
if state == "absent": |
... | ... |
@@ -236,7 +236,7 @@ class OSXDefaults(object): |
236 | 236 |
# First try to find out the type |
237 | 237 |
rc, out, err = self.module.run_command(self._base_command() + ["read-type", self.domain, self.key]) |
238 | 238 |
|
239 |
- # If RC is 1, the key does not exists |
|
239 |
+ # If RC is 1, the key does not exist |
|
240 | 240 |
if rc == 1: |
241 | 241 |
return None |
242 | 242 |
|
... | ... |
@@ -56,7 +56,7 @@ notes: |
56 | 56 |
EXAMPLES = ''' |
57 | 57 |
# Example playbook entries using the ejabberd_user module to manage users state. |
58 | 58 |
|
59 |
-- name: create a user if it does not exists |
|
59 |
+- name: create a user if it does not exist |
|
60 | 60 |
ejabberd_user: |
61 | 61 |
username: test |
62 | 62 |
host: server |
... | ... |
@@ -65,7 +65,7 @@ |
65 | 65 |
assert: |
66 | 66 |
that: |
67 | 67 |
- "not non_existent_network.changed" |
68 |
- - "\"Network 'Non existent VM' does not exists\" in non_existent_network.msg" |
|
68 |
+ - "\"Network 'Non existent VM' does not exist\" in non_existent_network.msg" |
|
69 | 69 |
|
70 | 70 |
- name: create new VMs with network and with only IP |
71 | 71 |
vmware_guest: |