Fix typos in remote_management modules (#62336)

This commit is contained in:
Andrey Klychkov 2019-09-16 09:37:26 +03:00 committed by Abhijeet Kasurde
parent 74a3eec1d9
commit 4de3e2b440
17 changed files with 23 additions and 23 deletions

View file

@ -81,7 +81,7 @@ options:
user_accesslevel: user_accesslevel:
description: description:
- This is the access level that needs to be create/modified/deleted - This is the access level that needs to be create/modified/deleted
- 0 View, 1 User, 2 SuperUser, 3 Adminstrator - 0 View, 1 User, 2 SuperUser, 3 Administrator
required: false required: false
choices: [ 0, 1, 2, 3 ] choices: [ 0, 1, 2, 3 ]
user_accessssh: user_accessssh:

View file

@ -187,7 +187,7 @@ EXAMPLES = '''
- include: katello.yml - include: katello.yml
vars: vars:
name: Promote Contentview Environment with longer timout name: Promote Contentview Environment with longer timeout
task_timeout: 10800 task_timeout: 10800
entity: content_view entity: content_view
action: promote action: promote
@ -199,10 +199,10 @@ EXAMPLES = '''
# Best Practices # Best Practices
# In Foreman, things can be done in paralell. # In Foreman, things can be done in parallel.
# When a conflicting action is already running, # When a conflicting action is already running,
# the task will fail instantly instead of waiting for the already running action to complete. # the task will fail instantly instead of waiting for the already running action to complete.
# So you sould use a "until success" loop to catch this. # So you should use a "until success" loop to catch this.
- name: Promote Contentview Environment with increased Timeout - name: Promote Contentview Environment with increased Timeout
katello: katello:

View file

@ -52,7 +52,7 @@ options:
- The state of the boot media. - The state of the boot media.
- "no_boot: Do not boot from the device" - "no_boot: Do not boot from the device"
- "boot_once: Boot from the device once and then notthereafter" - "boot_once: Boot from the device once and then notthereafter"
- "boot_always: Boot from the device each time the serveris rebooted" - "boot_always: Boot from the device each time the server is rebooted"
- "connect: Connect the virtual media device and set to boot_always" - "connect: Connect the virtual media device and set to boot_always"
- "disconnect: Disconnects the virtual media device and set to no_boot" - "disconnect: Disconnects the virtual media device and set to no_boot"
- "poweroff: Power off the server" - "poweroff: Power off the server"

View file

@ -247,7 +247,7 @@ input:
sample: | sample: |
<configConfMo><inConfig><computeRackUnit dn="sys/rack-unit-1" admin_Power="down"/></inConfig></configConfMo> <configConfMo><inConfig><computeRackUnit dn="sys/rack-unit-1" admin_Power="down"/></inConfig></configConfMo>
output: output:
description: RAW XML output eceived from the Cisco IMC, with error details description: RAW XML output received from the Cisco IMC, with error details
returned: failed returned: failed
type: str type: str
sample: > sample: >

View file

@ -27,7 +27,7 @@ options:
required: yes required: yes
query_params: query_params:
description: description:
- Query parameters for the Intersight API query languange. - Query parameters for the Intersight API query language.
type: dict type: dict
update_method: update_method:
description: description:
@ -38,7 +38,7 @@ options:
default: patch default: patch
api_body: api_body:
description: description:
- The paylod for API requests used to modify resources. - The payload for API requests used to modify resources.
type: dict type: dict
state: state:
description: description:

View file

@ -48,7 +48,7 @@ extends_documentation_fragment:
EXAMPLES = ''' EXAMPLES = '''
# get all cmms info # get all cmms info
- name: get nodess data from LXCA - name: get nodes data from LXCA
lxca_cmms: lxca_cmms:
login_user: USERID login_user: USERID
login_password: Password login_password: Password

View file

@ -149,7 +149,7 @@ class ManageIQAlertProfiles(object):
except Exception as e: except Exception as e:
self.module.fail_json(msg="Deleting profile failed: {error}".format(error=e)) self.module.fail_json(msg="Deleting profile failed: {error}".format(error=e))
msg = "Successfuly deleted profile {name}".format(name=profile['name']) msg = "Successfully deleted profile {name}".format(name=profile['name'])
return dict(changed=True, msg=msg) return dict(changed=True, msg=msg)
def get_alert_href(self, alert): def get_alert_href(self, alert):

View file

@ -129,7 +129,7 @@ from ansible.module_utils.manageiq import ManageIQ, manageiq_argument_spec
class ManageIQAlert(object): class ManageIQAlert(object):
""" Represent a ManageIQ alert. Can be initialized with both the format """ Represent a ManageIQ alert. Can be initialized with both the format
we recieve from the server and the format we get from the user. we receive from the server and the format we get from the user.
""" """
def __init__(self, alert): def __init__(self, alert):
self.description = alert['description'] self.description = alert['description']
@ -257,7 +257,7 @@ class ManageIQAlerts(object):
# the result to the expected result. # the result to the expected result.
if new_alert_obj == ManageIQAlert(result): if new_alert_obj == ManageIQAlert(result):
# success! # success!
msg = "Alert {description} upated successfully: {details}" msg = "Alert {description} updated successfully: {details}"
msg = msg.format(description=existing_alert['description'], details=result) msg = msg.format(description=existing_alert['description'], details=result)
return dict(changed=True, msg=msg) return dict(changed=True, msg=msg)

View file

@ -278,7 +278,7 @@ class ManageIQPolicies(object):
error=e) error=e)
self.module.fail_json(msg=msg) self.module.fail_json(msg=msg)
# check all entities in result to be successfull # check all entities in result to be successful
for result in response['results']: for result in response['results']:
if not result['success']: if not result['success']:
msg = "Failed to {action}: {message}".format( msg = "Failed to {action}: {message}".format(

View file

@ -718,7 +718,7 @@ class ManageIQProvider(object):
# NOTE: we do not check for diff's between requested and current # NOTE: we do not check for diff's between requested and current
# provider, we always submit endpoints with password or auth_keys, # provider, we always submit endpoints with password or auth_keys,
# since we can not compare with current password or auth_key, # since we can not compare with current password or auth_key,
# every edit request is sent to ManageIQ API without compareing # every edit request is sent to ManageIQ API without comparing
# it to current state. # it to current state.
# clean nulls, we do not send nulls to the api # clean nulls, we do not send nulls to the api
@ -869,7 +869,7 @@ def main():
manageiq_provider.module.fail_json( manageiq_provider.module.fail_json(
msg="provider_type %s is not supported" % (provider_type)) msg="provider_type %s is not supported" % (provider_type))
# build "connection_configurations" objects from user requsted endpoints # build "connection_configurations" objects from user requested endpoints
# "provider" is a required endpoint, if we have it, we have endpoints # "provider" is a required endpoint, if we have it, we have endpoints
if raw_endpoints.get("provider"): if raw_endpoints.get("provider"):
endpoints = manageiq_provider.build_connection_configurations(provider_type, raw_endpoints) endpoints = manageiq_provider.build_connection_configurations(provider_type, raw_endpoints)

View file

@ -225,7 +225,7 @@ class ManageIQTags(object):
error=e) error=e)
self.module.fail_json(msg=msg) self.module.fail_json(msg=msg)
# check all entities in result to be successfull # check all entities in result to be successful
for result in response['results']: for result in response['results']:
if not result['success']: if not result['success']:
msg = "Failed to {action}: {message}".format( msg = "Failed to {action}: {message}".format(

View file

@ -313,7 +313,7 @@ def main():
changed=False, changed=False,
msg="user %s: does not exist in manageiq" % (userid)) msg="user %s: does not exist in manageiq" % (userid))
# user shoult exist # user should exist
if state == "present": if state == "present":
# if we have a user, edit it # if we have a user, edit it
if user: if user:

View file

@ -68,7 +68,7 @@ EXAMPLES = '''
- name: Gather information about a Logical Interconnect Group by name - name: Gather information about a Logical Interconnect Group by name
oneview_logical_interconnect_group_info: oneview_logical_interconnect_group_info:
name: logical lnterconnect group name name: logical interconnect group name
hostname: 172.16.101.48 hostname: 172.16.101.48
username: administrator username: administrator
password: my_password password: my_password

View file

@ -378,7 +378,7 @@ def main():
result["firmware_update_capabilities"] = rf_utils.get_firmware_update_capabilities() result["firmware_update_capabilities"] = rf_utils.get_firmware_update_capabilities()
elif category == "Sessions": elif category == "Sessions":
# excute only if we find SessionService resources # execute only if we find SessionService resources
resource = rf_utils._find_sessionservice_resource() resource = rf_utils._find_sessionservice_resource()
if resource['ret'] is False: if resource['ret'] is False:
module.fail_json(msg=resource['msg']) module.fail_json(msg=resource['msg'])

View file

@ -26,13 +26,13 @@ options:
class_ids: class_ids:
description: description:
- One or more UCS Manager Class IDs to query. - One or more UCS Manager Class IDs to query.
- As a comma separtated list - As a comma separated list
type: str type: str
distinguished_names: distinguished_names:
description: description:
- One or more UCS Manager Distinguished Names to query. - One or more UCS Manager Distinguished Names to query.
- As a comma separtated list - As a comma separated list
type: str type: str
delegate_to: delegate_to:

View file

@ -299,7 +299,7 @@ def check_storage_profile_props(ucs, module, dn):
if mo_1.check_prop_match(**kwargs): if mo_1.check_prop_match(**kwargs):
props_match = True props_match = True
elif not module.params['storage_profile']: elif not module.params['storage_profile']:
# no stroage profile mo or desired state # no storage profile mo or desired state
props_match = True props_match = True
return props_match return props_match

View file

@ -47,7 +47,7 @@ version_added: '2.9'
''' '''
EXAMPLES = r''' EXAMPLES = r'''
- name: Get all vlans in frabric A - name: Get all vlans in fabric A
ucs_vlan_find: ucs_vlan_find:
hostname: 172.16.143.150 hostname: 172.16.143.150
username: admin username: admin