Log message

From the following code, session can't be opened when environment
status is DEPLOYING or DELETING status.

if env_status in (states.EnvironmentStatus.DEPLOYING,
                          states.EnvironmentStatus.DELETING):

Change-Id: I4f20b51f87a77cfbf2d76e9961d8bfaa6380aac8
This commit is contained in:
chenaidong1 2017-10-12 17:31:46 +08:00
parent af6a44aa99
commit 090e2d2f9f
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Controller(object):
states.EnvironmentStatus.DELETING):
LOG.warning('Could not open session for environment '
'<EnvId: {id}>, environment has deploying '
'status.'.format(id=environment_id))
'or deleting status.'.format(id=environment_id))
raise exc.HTTPForbidden()
user_id = request.context.user