Fix typos in remote_management modules (#62336)

pull/62338/head
Andrey Klychkov 5 years ago committed by Abhijeet Kasurde
parent 74a3eec1d9
commit 4de3e2b440

@ -81,7 +81,7 @@ options:
user_accesslevel:
description:
- 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
choices: [ 0, 1, 2, 3 ]
user_accessssh:

@ -187,7 +187,7 @@ EXAMPLES = '''
- include: katello.yml
vars:
name: Promote Contentview Environment with longer timout
name: Promote Contentview Environment with longer timeout
task_timeout: 10800
entity: content_view
action: promote
@ -199,10 +199,10 @@ EXAMPLES = '''
# 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,
# 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
katello:

@ -247,7 +247,7 @@ input:
sample: |
<configConfMo><inConfig><computeRackUnit dn="sys/rack-unit-1" admin_Power="down"/></inConfig></configConfMo>
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
type: str
sample: >

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

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

@ -149,7 +149,7 @@ class ManageIQAlertProfiles(object):
except Exception as 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)
def get_alert_href(self, alert):

@ -129,7 +129,7 @@ from ansible.module_utils.manageiq import ManageIQ, manageiq_argument_spec
class ManageIQAlert(object):
""" 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):
self.description = alert['description']
@ -257,7 +257,7 @@ class ManageIQAlerts(object):
# the result to the expected result.
if new_alert_obj == ManageIQAlert(result):
# success!
msg = "Alert {description} upated successfully: {details}"
msg = "Alert {description} updated successfully: {details}"
msg = msg.format(description=existing_alert['description'], details=result)
return dict(changed=True, msg=msg)

@ -278,7 +278,7 @@ class ManageIQPolicies(object):
error=e)
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']:
if not result['success']:
msg = "Failed to {action}: {message}".format(

@ -718,7 +718,7 @@ class ManageIQProvider(object):
# NOTE: we do not check for diff's between requested and current
# provider, we always submit endpoints with password or auth_keys,
# 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.
# clean nulls, we do not send nulls to the api
@ -869,7 +869,7 @@ def main():
manageiq_provider.module.fail_json(
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
if raw_endpoints.get("provider"):
endpoints = manageiq_provider.build_connection_configurations(provider_type, raw_endpoints)

@ -225,7 +225,7 @@ class ManageIQTags(object):
error=e)
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']:
if not result['success']:
msg = "Failed to {action}: {message}".format(

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

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

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

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

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

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

Loading…
Cancel
Save