fixed typos

reviewable/pr18780/r1
Siva Popuri 9 years ago
parent 7d26a49dba
commit 180baa2ff1

@ -85,7 +85,7 @@ notes:
- To use this module, it is required to set the below environment variables which enables access to the - To use this module, it is required to set the below environment variables which enables access to the
Centurylink Cloud Centurylink Cloud
- CLC_V2_API_USERNAME, the account login id for the centurylink cloud - CLC_V2_API_USERNAME, the account login id for the centurylink cloud
- CLC_V2_API_PASSWORD, the account passwod for the centurylink cloud - CLC_V2_API_PASSWORD, the account password for the centurylink cloud
- Alternatively, the module accepts the API token and account alias. The API token can be generated using the - Alternatively, the module accepts the API token and account alias. The API token can be generated using the
CLC account login and password via the HTTP api call @ https://api.ctl.io/v2/authentication/login CLC account login and password via the HTTP api call @ https://api.ctl.io/v2/authentication/login
- CLC_V2_API_TOKEN, the API token generated from https://api.ctl.io/v2/authentication/login - CLC_V2_API_TOKEN, the API token generated from https://api.ctl.io/v2/authentication/login
@ -261,7 +261,7 @@ class ClcAlertPolicy():
""" """
Ensures that the alert policy is present Ensures that the alert policy is present
:return: (changed, policy) :return: (changed, policy)
canged: A flag representing if anything is modified changed: A flag representing if anything is modified
policy: the created/updated alert policy policy: the created/updated alert policy
""" """
changed = False changed = False
@ -286,7 +286,7 @@ class ClcAlertPolicy():
""" """
Ensures that the alert policy is absent Ensures that the alert policy is absent
:return: (changed, None) :return: (changed, None)
canged: A flag representing if anything is modified changed: A flag representing if anything is modified
""" """
changed = False changed = False
p = self.module.params p = self.module.params
@ -308,10 +308,10 @@ class ClcAlertPolicy():
def _ensure_alert_policy_is_updated(self, alert_policy): def _ensure_alert_policy_is_updated(self, alert_policy):
""" """
Ensures the aliert policy is updated if anything is changed in the alert policy configuration Ensures the alert policy is updated if anything is changed in the alert policy configuration
:param alert_policy: the target alert policy :param alert_policy: the target alert policy
:return: (changed, policy) :return: (changed, policy)
canged: A flag representing if anything is modified changed: A flag representing if anything is modified
policy: the updated the alert policy policy: the updated the alert policy
""" """
changed = False changed = False
@ -472,7 +472,7 @@ class ClcAlertPolicy():
alert_policy_id = id alert_policy_id = id
else: else:
return module.fail_json( return module.fail_json(
msg='mutiple alert policies were found with policy name : %s' % msg='multiple alert policies were found with policy name : %s' %
(alert_policy_name)) (alert_policy_name))
return alert_policy_id return alert_policy_id

Loading…
Cancel
Save