Fixes misleading message after stop deploying

Added instruction for making changes if user wants to redeploy env.

Change-Id: I54513b85a2e1c9bd22bd801c131cdbaa48641332
Closes-Bug: #1502086
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
Ruslan Aliev 2015-11-10 21:59:47 +03:00
parent fe7fe7d082
commit f9cb1bcda9
2 changed files with 4 additions and 2 deletions

View File

@ -623,7 +623,8 @@ class NailgunReceiver(object):
message = (
u"Deployment of environment '{0}' was successfully stopped. "
u"Please reset the environment if you want to redeploy it."
u"Please make changes and reset the environment "
u"if you want to redeploy it."
.format(task.cluster.name or task.cluster_id)
)

View File

@ -75,7 +75,8 @@ class TestStopDeployment(BaseIntegrationTest):
self.assertRegexpMatches(
notification.message,
'Please reset the environment if you want to redeploy it.')
'Please make changes and reset the environment '
'if you want to redeploy it.')
@fake_tasks(fake_rpc=False, mock_rpc=False)
@patch('nailgun.rpc.cast')