Change 'cound' to 'could' in error message
Clean up a couple of typos in error messages. Change-Id: I57b559b053d2fb0e5406ba29f303309abc9c9875
This commit is contained in:
@@ -202,14 +202,14 @@ class OvercloudRcAction(base.TripleOAction):
|
|||||||
stack = orchestration_client.stacks.get(self.container)
|
stack = orchestration_client.stacks.get(self.container)
|
||||||
except heat_exc.HTTPNotFound:
|
except heat_exc.HTTPNotFound:
|
||||||
error = (
|
error = (
|
||||||
"The Heat stack {} cound not be found. Make sure you have "
|
"The Heat stack {} could not be found. Make sure you have "
|
||||||
"deployed before calling this action.").format(self.container)
|
"deployed before calling this action.").format(self.container)
|
||||||
return mistral_workflow_utils.Result(error=error)
|
return mistral_workflow_utils.Result(error=error)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
environment = workflow_client.environments.get(self.container)
|
environment = workflow_client.environments.get(self.container)
|
||||||
except mistralclient_exc.APIException:
|
except mistralclient_exc.APIException:
|
||||||
error = "The Mistral environment {} cound not be found.".format(
|
error = "The Mistral environment {} could not be found.".format(
|
||||||
self.container)
|
self.container)
|
||||||
return mistral_workflow_utils.Result(error=error)
|
return mistral_workflow_utils.Result(error=error)
|
||||||
|
|
||||||
|
@@ -279,7 +279,7 @@ class OvercloudRcActionTestCase(base.TestCase):
|
|||||||
result = action.run()
|
result = action.run()
|
||||||
|
|
||||||
self.assertEqual(result.error, (
|
self.assertEqual(result.error, (
|
||||||
"The Heat stack overcast cound not be found. Make sure you have "
|
"The Heat stack overcast could not be found. Make sure you have "
|
||||||
"deployed before calling this action."
|
"deployed before calling this action."
|
||||||
))
|
))
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ class OvercloudRcActionTestCase(base.TestCase):
|
|||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result.error,
|
result.error,
|
||||||
"The Mistral environment overcast cound not be found.")
|
"The Mistral environment overcast could not be found.")
|
||||||
|
|
||||||
@mock.patch('tripleo_common.actions.base.TripleOAction.'
|
@mock.patch('tripleo_common.actions.base.TripleOAction.'
|
||||||
'get_workflow_client')
|
'get_workflow_client')
|
||||||
|
Reference in New Issue
Block a user