diff --git a/lib/ansible/module_utils/common/file.py b/lib/ansible/module_utils/common/file.py index 93e26b98610..1e836607acc 100644 --- a/lib/ansible/module_utils/common/file.py +++ b/lib/ansible/module_utils/common/file.py @@ -67,7 +67,7 @@ def is_executable(path): # This function's signature needs to be repeated # as the first line of its docstring. # This method is reused by the basic module, - # the repetion helps the basic module's html documentation come out right. + # the repetition helps the basic module's html documentation come out right. # http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_docstring_signature '''is_executable(path) diff --git a/lib/ansible/module_utils/csharp/Ansible.AccessToken.cs b/lib/ansible/module_utils/csharp/Ansible.AccessToken.cs index 676991e26f2..48c4a197ae6 100644 --- a/lib/ansible/module_utils/csharp/Ansible.AccessToken.cs +++ b/lib/ansible/module_utils/csharp/Ansible.AccessToken.cs @@ -395,7 +395,7 @@ namespace Ansible.AccessToken { SafeNativeHandle hToken; if (!NativeMethods.OpenProcessToken(hProcess, access, out hToken)) - throw new Win32Exception(String.Format("Failed to open proces token with access {0}", + throw new Win32Exception(String.Format("Failed to open process token with access {0}", access.ToString())); return hToken; diff --git a/lib/ansible/module_utils/csharp/Ansible.Become.cs b/lib/ansible/module_utils/csharp/Ansible.Become.cs index a7434a765e9..a6f645cabd3 100644 --- a/lib/ansible/module_utils/csharp/Ansible.Become.cs +++ b/lib/ansible/module_utils/csharp/Ansible.Become.cs @@ -80,7 +80,7 @@ namespace Ansible.Become public enum SECURITY_LOGON_TYPE { - System = 0, // Used only by the Sytem account + System = 0, // Used only by the System account Interactive = 2, Network, Batch, diff --git a/lib/ansible/module_utils/facts/hardware/linux.py b/lib/ansible/module_utils/facts/hardware/linux.py index 36e02306b8b..39ed62a5a9c 100644 --- a/lib/ansible/module_utils/facts/hardware/linux.py +++ b/lib/ansible/module_utils/facts/hardware/linux.py @@ -165,7 +165,7 @@ class LinuxHardware(Hardware): i = 0 vendor_id_occurrence = 0 model_name_occurrence = 0 - processor_occurence = 0 + processor_occurrence = 0 physid = 0 coreid = 0 sockets = {} @@ -219,7 +219,7 @@ class LinuxHardware(Hardware): if key == 'model name': model_name_occurrence += 1 if key == 'processor': - processor_occurence += 1 + processor_occurrence += 1 i += 1 elif key == 'physical id': physid = val @@ -248,7 +248,7 @@ class LinuxHardware(Hardware): # The fields for Power CPUs include 'processor' and 'cpu'. # Always use 'processor' count for ARM and Power systems if collected_facts.get('ansible_architecture', '').startswith(('armv', 'aarch', 'ppc')): - i = processor_occurence + i = processor_occurrence # FIXME if collected_facts.get('ansible_architecture') != 's390x': @@ -281,7 +281,7 @@ class LinuxHardware(Hardware): # if the number of processors available to the module's # thread cannot be determined, the processor count # reported by /proc will be the default: - cpu_facts['processor_nproc'] = processor_occurence + cpu_facts['processor_nproc'] = processor_occurrence try: cpu_facts['processor_nproc'] = len( diff --git a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.CommandUtil.psm1 b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.CommandUtil.psm1 index 661de72eccf..24075dd5564 100644 --- a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.CommandUtil.psm1 +++ b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.CommandUtil.psm1 @@ -28,7 +28,7 @@ Function Get-ExecutablePath { Get's the full path to an executable, will search the directory specified or ones in the PATH env var. .PARAMETER executable - [String]The executable to seach for. + [String]The executable to search for. .PARAMETER directory [String] If set, the directory to search in. diff --git a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1 b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1 index 4b9d3ae9652..d6f8ecff5aa 100644 --- a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1 +++ b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.SID.psm1 @@ -78,7 +78,7 @@ Function Convert-ToSID { } else { # when in a domain NTAccount(String) will favour domain lookups check - # if username is a local user and explictly search on the localhost for + # if username is a local user and explicitly search on the localhost for # that account $adsi = [ADSI]("WinNT://$env:COMPUTERNAME,computer") $user = $adsi.psbase.children | Where-Object { $_.schemaClassName -eq "user" -and $_.Name -eq $username } diff --git a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1 b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1 index 716d93484f2..b59ba72f23f 100644 --- a/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1 +++ b/lib/ansible/module_utils/powershell/Ansible.ModuleUtils.WebRequest.psm1 @@ -265,7 +265,7 @@ Function Get-AnsibleWebRequest { # proxy to work with, otherwise just ignore the credentials property. if ($null -ne $proxy) { if ($ProxyUseDefaultCredential) { - # Weird hack, $web_request.Proxy returns an IWebProxy object which only gurantees the Credentials + # Weird hack, $web_request.Proxy returns an IWebProxy object which only guarantees the Credentials # property. We cannot set UseDefaultCredentials so we just set the Credentials to the # DefaultCredentials in the CredentialCache which does the same thing. $proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials diff --git a/lib/ansible/module_utils/service.py b/lib/ansible/module_utils/service.py index 7369bd786f3..21d40188bf8 100644 --- a/lib/ansible/module_utils/service.py +++ b/lib/ansible/module_utils/service.py @@ -100,7 +100,7 @@ def get_ps(module, pattern): if rc == 0: for line in psout.splitlines(): if pattern in line: - # FIXME: should add logic to prevent matching 'self', though that should be extreemly rare + # FIXME: should add logic to prevent matching 'self', though that should be extremely rare found = True break return found diff --git a/lib/ansible/module_utils/urls.py b/lib/ansible/module_utils/urls.py index b9cf655fe45..d16a6a935d1 100644 --- a/lib/ansible/module_utils/urls.py +++ b/lib/ansible/module_utils/urls.py @@ -850,7 +850,7 @@ def RedirectHandlerFactory(follow_redirects=None, validate_certs=True, ca_path=N # Be conciliant with URIs containing a space newurl = newurl.replace(' ', '%20') - # Suport redirect with payload and original headers + # Support redirect with payload and original headers if code in (307, 308): # Preserve payload and headers headers = req.headers