From 4b152235ffac9d01d8dafb3250e7e8a85ab60630 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 19 Jul 2019 18:18:14 +0530 Subject: [PATCH] Typo fixes (#59227) Signed-off-by: Abhijeet Kasurde --- contrib/inventory/nsot.py | 2 +- lib/ansible/inventory/manager.py | 2 +- lib/ansible/module_utils/basic.py | 2 +- lib/ansible/modules/cloud/amazon/aws_acm_info.py | 2 +- lib/ansible/modules/cloud/amazon/aws_waf_info.py | 2 +- .../modules/remote_management/ucs/ucs_disk_group_policy.py | 2 +- lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py | 6 +++--- lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py | 6 +++--- lib/ansible/modules/remote_management/ucs/ucs_org.py | 2 +- .../remote_management/ucs/ucs_service_profile_template.py | 2 +- lib/ansible/modules/remote_management/ucs/ucs_timezone.py | 4 ++-- lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py | 2 +- .../modules/storage/netapp/na_elementsw_cluster_snmp.py | 2 +- test/sanity/validate-modules/ignore.txt | 2 -- 14 files changed, 18 insertions(+), 20 deletions(-) diff --git a/contrib/inventory/nsot.py b/contrib/inventory/nsot.py index da5df40449f..6b09704d3aa 100755 --- a/contrib/inventory/nsot.py +++ b/contrib/inventory/nsot.py @@ -25,7 +25,7 @@ Features will also append ``site_id`` and ``id`` as facts to utilize. -Confguration +Configuration ------------ Since it'd be annoying and failure prone to guess where you're configuration diff --git a/lib/ansible/inventory/manager.py b/lib/ansible/inventory/manager.py index e10f56876e5..32ec5ff3ea0 100644 --- a/lib/ansible/inventory/manager.py +++ b/lib/ansible/inventory/manager.py @@ -243,7 +243,7 @@ class InventoryManager(object): else: # left with strings or files, let plugins figure it out - # set so new hosts can use for inventory_file/dir vasr + # set so new hosts can use for inventory_file/dir vars self._inventory.current_source = source # try source with each plugin diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 120f1e2acbd..d07c0cd5108 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -694,7 +694,7 @@ class AnsibleModule(object): self._set_cwd() # Do this at the end so that logging parameters have been set up - # This is to warn third party module authors that the functionatlity is going away. + # This is to warn third party module authors that the functionality is going away. # We exclude uri and zfs as they have their own deprecation warnings for users and we'll # make sure to update their code to stop using check_invalid_arguments when 2.9 rolls around if module_set_check_invalid_arguments and self._name not in ('uri', 'zfs'): diff --git a/lib/ansible/modules/cloud/amazon/aws_acm_info.py b/lib/ansible/modules/cloud/amazon/aws_acm_info.py index c15e8380bba..fe56e6c9677 100644 --- a/lib/ansible/modules/cloud/amazon/aws_acm_info.py +++ b/lib/ansible/modules/cloud/amazon/aws_acm_info.py @@ -40,7 +40,7 @@ EXAMPLES = ''' aws_acm_info: domain_name: "*.example_com" -- name: obtain all certificates pending validiation +- name: obtain all certificates pending validation aws_acm_info: statuses: - PENDING_VALIDATION diff --git a/lib/ansible/modules/cloud/amazon/aws_waf_info.py b/lib/ansible/modules/cloud/amazon/aws_waf_info.py index 41d60c9c309..ceed988b091 100644 --- a/lib/ansible/modules/cloud/amazon/aws_waf_info.py +++ b/lib/ansible/modules/cloud/amazon/aws_waf_info.py @@ -19,7 +19,7 @@ options: description: - The name of a Web Application Firewall waf_regional: - description: Wether to use waf_regional module. Defaults to true + description: Whether to use waf_regional module. Defaults to true default: false required: no type: bool diff --git a/lib/ansible/modules/remote_management/ucs/ucs_disk_group_policy.py b/lib/ansible/modules/remote_management/ucs/ucs_disk_group_policy.py index a91d9fc9bfc..aef55aa6b86 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_disk_group_policy.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_disk_group_policy.py @@ -130,7 +130,7 @@ options: default: present virtual_drive: description: - - Configuraiton of virtual drive options. + - Configuration of virtual drive options. suboptions: access_policy: description: diff --git a/lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py b/lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py index f5618e8bb3a..71f79715828 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py @@ -32,13 +32,13 @@ options: - "You cannot use spaces or any special characters other than - (hyphen), \"_\" (underscore), : (colon), and . (period)." - You cannot change this name after the IP address pool is created. required: yes - descrption: + description: description: - The user-defined description of the IP address pool. - Enter up to 256 characters. - "You can use any characters or spaces except the following:" - "` (accent mark), \ (backslash), ^ (carat), \" (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote)." - aliases: [ descr ] + aliases: [ descr, descrption ] order: description: - The Assignment Order field. @@ -159,7 +159,7 @@ def main(): argument_spec.update( org_dn=dict(type='str', default='org-root'), name=dict(type='str', required=True), - descr=dict(type='str', default=''), + descr=dict(type='str', default='', aliases=['descrption', 'description']), order=dict(type='str', default='default', choices=['default', 'sequential']), first_addr=dict(type='str'), last_addr=dict(type='str'), diff --git a/lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py b/lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py index 26eb925ca24..69b047951fc 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py @@ -32,13 +32,13 @@ options: - "You cannot use spaces or any special characters other than - (hyphen), \"_\" (underscore), : (colon), and . (period)." - You cannot change this name after the MAC pool is created. required: yes - descrption: + description: description: - A description of the MAC pool. - Enter up to 256 characters. - "You can use any characters or spaces except the following:" - "` (accent mark), \ (backslash), ^ (carat), \" (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote)." - aliases: [ descr ] + aliases: [ descr, descrption ] order: description: - The Assignment Order field. @@ -100,7 +100,7 @@ def main(): argument_spec.update( org_dn=dict(type='str', default='org-root'), name=dict(type='str', required=True), - descr=dict(type='str', default=''), + descr=dict(type='str', default='', aliases=['description', 'descrption']), order=dict(type='str', default='default', choices=['default', 'sequential']), first_addr=dict(type='str'), last_addr=dict(type='str'), diff --git a/lib/ansible/modules/remote_management/ucs/ucs_org.py b/lib/ansible/modules/remote_management/ucs/ucs_org.py index 0f288a2c8ec..5c459cf6b28 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_org.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_org.py @@ -33,7 +33,7 @@ options: org_name: description: - - The name of the orgranization. + - The name of the organization. - Enter up to 16 characters. - "You can use any characters or spaces except the following:" - "` (accent mark), \ (backslash), ^ (carat), \" (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote)." diff --git a/lib/ansible/modules/remote_management/ucs/ucs_service_profile_template.py b/lib/ansible/modules/remote_management/ucs/ucs_service_profile_template.py index 640980c1c4f..fdd88c23075 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_service_profile_template.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_service_profile_template.py @@ -85,7 +85,7 @@ options: - The name of the server pool you want to associate with this service profile template. server_pool_qualification: description: - - The name of the server pool policy qualificaiton you want to use for this service profile template. + - The name of the server pool policy qualification you want to use for this service profile template. power_state: description: - The power state to be applied when a service profile created from this template is associated with a server. diff --git a/lib/ansible/modules/remote_management/ucs/ucs_timezone.py b/lib/ansible/modules/remote_management/ucs/ucs_timezone.py index cb43d16058a..2b0f22080cd 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_timezone.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_timezone.py @@ -29,8 +29,8 @@ options: admin_state: description: - The admin_state setting - - The enabled admin_state indicates the timezone confguration is utilized by UCS Manager. - - The disabled admin_state indicates the timezone confguration is ignored by UCS Manager. + - The enabled admin_state indicates the timezone configuration is utilized by UCS Manager. + - The disabled admin_state indicates the timezone configuration is ignored by UCS Manager. choices: [disabled, enabled] default: enabled diff --git a/lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py b/lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py index 886b0c7f1b6..36f576e343f 100644 --- a/lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py +++ b/lib/ansible/modules/remote_management/ucs/ucs_wwn_pool.py @@ -59,7 +59,7 @@ options: - This is the From field in the UCS Manager Add WWN Blocks menu. last_addr: description: - - The last initiator in the Worlde Wide Name (WWN) block. + - The last initiator in the World Wide Name (WWN) block. - This is the To field in the UCS Manager Add WWN Blocks menu. - For WWxN pools, the pool size must be a multiple of ports-per-node + 1. - For example, if there are 7 ports per node, the pool size must be a multiple of 8. diff --git a/lib/ansible/modules/storage/netapp/na_elementsw_cluster_snmp.py b/lib/ansible/modules/storage/netapp/na_elementsw_cluster_snmp.py index a97e0531251..ecce3eb6612 100644 --- a/lib/ansible/modules/storage/netapp/na_elementsw_cluster_snmp.py +++ b/lib/ansible/modules/storage/netapp/na_elementsw_cluster_snmp.py @@ -330,7 +330,7 @@ class ElementSWClusterSnmp(object): result_message = "SNMP is enabled and configured" elif update_required is True: - # If snmp is already enabled, update the configuraiton if required + # If snmp is already enabled, update the configuration if required self.configure_snmp(networks, usm_users) result_message = "SNMP is configured" diff --git a/test/sanity/validate-modules/ignore.txt b/test/sanity/validate-modules/ignore.txt index 969db2e06a2..367fda7b211 100644 --- a/test/sanity/validate-modules/ignore.txt +++ b/test/sanity/validate-modules/ignore.txt @@ -3231,10 +3231,8 @@ lib/ansible/modules/remote_management/stacki/stacki_host.py E324 lib/ansible/modules/remote_management/stacki/stacki_host.py E326 lib/ansible/modules/remote_management/stacki/stacki_host.py E337 lib/ansible/modules/remote_management/ucs/ucs_disk_group_policy.py E337 -lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py E323 lib/ansible/modules/remote_management/ucs/ucs_ip_pool.py E337 lib/ansible/modules/remote_management/ucs/ucs_lan_connectivity.py E337 -lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py E323 lib/ansible/modules/remote_management/ucs/ucs_mac_pool.py E337 lib/ansible/modules/remote_management/ucs/ucs_managed_objects.py E337 lib/ansible/modules/remote_management/ucs/ucs_ntp_server.py E337