Fix spelling mistakes (comments only) (#25564)

Original Author : klemens <ka7@github.com>

Taking over previous PR as per
https://github.com/ansible/ansible/pull/23644#issuecomment-307334525

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-06-12 12:25:19 +05:30 committed by John R Barker
commit b89cb95609
158 changed files with 202 additions and 201 deletions

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_backup_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_backup_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_bgp_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_bgp_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_command_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_command_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_conditional_command_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_conditional_command_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_conditional_template_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_conditional_template_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_ethernet_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_ethernet_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_facts_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_facts_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_image_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_image_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_portchannel_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_portchannel_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_rollback_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_rollback_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_save_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_save_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_facts_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_showrun_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_template_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_template_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_vlag_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_vlag_sample]

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_vlan_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_vlan_sample]

View file

@ -141,7 +141,7 @@
that:
- delete_service_result.changed
- name: removal of an non-existant service causes no change
- name: removal of an non-existent service causes no change
consul:
service_id: 'service1'
state: absent
@ -163,7 +163,7 @@
that:
- delete_check_result.changed
- name: removal of an non-existant check causes no change
- name: removal of an non-existent check causes no change
consul:
check_id: 'node_level'
state: absent

View file

@ -59,9 +59,9 @@
- 'result.failed'
- 'result.msg == "Regex error for pattern &23424--[: unexpected end of regular expression"'
## Non-existant instance tests ##
## Non-existent instance tests ##
# # ============================================================
- name: "test tag non-existant instance (state==present)"
- name: "test tag non-existent instance (state==present)"
gce_tag:
service_account_email: "{{ service_account_email }}"
pem_file: "{{ pem_file }}"
@ -79,7 +79,7 @@
- 'result.failed'
# # ============================================================
- name: "test tag non-existant instance (state==absent)"
- name: "test tag non-existent instance (state==absent)"
gce_tag:
service_account_email: "{{ service_account_email }}"
pem_file: "{{ pem_file }}"

View file

@ -94,7 +94,7 @@
- result|changed
- result.enabled
- name: test disable an exising job without config
- name: test disable an existing job without config
local_action:
module: jenkins_job
name: test.job
@ -103,14 +103,14 @@
password: "{{ jenkins_password }}"
enabled: false
register: result
- name: verify test disable an exising job without config
- name: verify test disable an existing job without config
assert:
that:
- result|success
- result|changed
- not result.enabled
- name: test disable an exising job without config idempotence
- name: test disable an existing job without config idempotence
local_action:
module: jenkins_job
name: test.job
@ -119,7 +119,7 @@
password: "{{ jenkins_password }}"
enabled: false
register: result
- name: verify test disable an exising job without config idempotence
- name: verify test disable an existing job without config idempotence
assert:
that:
- result|success

View file

@ -7,7 +7,7 @@
# - A hostname/ip can be a member of multiple groups
#
# In the /etc/ansible/hosts file u have to enter [cnos_vlan_sample] tag
# Following you should specify IP Adresses details
# Following you should specify IP Addresses details
# Please change <username> and <password> with appropriate value for your switch.
[cnos_vlan_sample]

View file

@ -141,7 +141,7 @@
- asyncresult.finished == 1
- asyncresult.changed == false
- asyncresult | failed == true
# TODO: reenable after catastrophic failure behavior is cleaned up
# TODO: re-enable after catastrophic failure behavior is cleaned up
# - asyncresult.msg is search('failing via exception')

View file

@ -139,7 +139,7 @@
register: actual
failed_when: actual.msg != 'Argument path ' + win_output_dir + '\\win_find\\single\\large.ps1 is a file not a directory'
- name: expect failure whe path is set to a non existant folder
- name: expect failure whe path is set to a non existent folder
win_find:
paths: "{{win_output_dir}}\\win_find\\thisisafakefolder"
register: actual

View file

@ -113,12 +113,12 @@
that:
- "actual == expected"
- name: get non-existant reg key
- name: get non-existent reg key
win_reg_stat:
path: HKCU:\Test\Thispathwillneverexist
register: actual
- name: set expected value for non-existant reg key
- name: set expected value for non-existent reg key
set_fact:
expected:
changed: false
@ -298,13 +298,13 @@
that:
- "actual == expected"
- name: get non-existance property
- name: get non-existence property
win_reg_stat:
path: HKCU:\Test\single
name: doesnotexist
register: actual
- name: set expected non-existance property
- name: set expected non-existence property
set_fact:
expected:
changed: false

View file

@ -497,7 +497,7 @@
desktop_interact: True
register: win_service_local_system_desktop
- name: check that the service has been set to Local Sytem with desktop interaction
- name: check that the service has been set to Local System with desktop interaction
assert:
that:
- "win_service_local_system_desktop|changed"
@ -791,7 +791,7 @@
name: TestServiceDependency
state: started
- name: wait 5 seconds for service to propogate service startup
- name: wait 5 seconds for service to propagate service startup
pause:
seconds: 5

View file

@ -21,7 +21,7 @@ galaxy_info:
# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If travis integration is cofigured, only notification for this
# this branch. If travis integration is configured, only notification for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:

View file

@ -152,7 +152,7 @@ class GCPAuthTestCase(unittest.TestCase):
module = mock.MagicMock()
with mock.patch("ansible.module_utils.gcp.open",
mock.mock_open(read_data='foobar'), create=True) as m:
# pem condition, warning is surpressed with the return_value
# pem condition, warning is suppressed with the return_value
credentials_file = '/foopath/pem.pem'
is_valid = _validate_credentials_file(module,
credentials_file=credentials_file,

View file

@ -173,7 +173,7 @@ class TestVaultEditor(unittest.TestCase):
src_file_contents = to_bytes("some info in a file\nyup.")
src_file_path = self._create_file(self._test_dir, 'src_file', content=src_file_contents)
# editor invocation doesnt change anything
# editor invocation doesn't change anything
def faux_editor(editor_args):
self._faux_editor(editor_args, src_file_contents)

View file

@ -286,7 +286,7 @@ class TestAnsibleLoaderVault(unittest.TestCase, YamlTestUtils):
self.assertTrue('some string' != vault_string)
self.assertNotEquals('some string', vault_string)
# Note this is a compare of the str/unicode of these, they are diferent types
# Note this is a compare of the str/unicode of these, they are different types
# so we want to test self == other, and other == self etc
self.assertEquals(plaintext_var, vault_string)
self.assertEquals(vault_string, plaintext_var)

View file

@ -151,7 +151,7 @@ class TestIncludeRole(unittest.TestCase):
"""
Test nested includes with default tasks and variables.
Variables from outer roles should be inherited, but overriden in inner
Variables from outer roles should be inherited, but overridden in inner
roles.
"""
@ -192,7 +192,7 @@ class TestIncludeRole(unittest.TestCase):
"""
Test nested includes with alternative tasks and variables.
Variables from outer roles should be inherited, but overriden in inner
Variables from outer roles should be inherited, but overridden in inner
roles.
"""

View file

@ -114,7 +114,7 @@ class SynchronizeTester(object):
fdata = f.read()
test_meta = yaml.load(fdata)
# load inital play context vars
# load initial play context vars
if '_play_context' in test_meta:
if test_meta['_play_context']:
self.task.args = {}
@ -123,7 +123,7 @@ class SynchronizeTester(object):
v = None
setattr(self._play_context, k, v)
# load inital task context vars
# load initial task context vars
if '_task' in test_meta:
if test_meta['_task']:
self.task.args = {}
@ -133,14 +133,14 @@ class SynchronizeTester(object):
v = None
setattr(self.task, k, v)
# load inital task vars
# load initial task vars
if 'task_args' in test_meta:
if test_meta['task_args']:
self.task.args = {}
for (k, v) in test_meta['task_args'].items():
self.task.args[k] = v
# load inital task vars
# load initial task vars
invarspath = os.path.join(fixturepath, test_meta.get('fixtures', {}).get('taskvars_in', 'taskvars_in.json'))
with open(invarspath, 'rb') as f:
fdata = f.read()
@ -163,7 +163,7 @@ class SynchronizeTester(object):
for (k, v) in test_meta['hostvars'].items():
in_task_vars['hostvars'][k] = v
# initalize and run the module
# initialize and run the module
SAM = ActionModule(self.task, self.connection, self._play_context,
self.loader, self.templar, self.shared_loader_obj)
SAM._execute_module = self._execute_module

View file

@ -206,7 +206,7 @@ class TestVariableManager(unittest.TestCase):
res = v.get_vars(play=play1, task=task)
self.assertEqual(res['default_var'], 'default_var_from_defaults_only1')
# next we assert the precendence of inventory variables
# next we assert the precedence of inventory variables
v.set_inventory(inv1)
h1 = inv1.get_host('host1')