Resolved issue with session delete
Change-Id: Iad13b4f9e921f7dce899df1a79b7617a71327dae
This commit is contained in:
parent
2d5256783a
commit
a5c957ef56
@ -71,6 +71,11 @@ class Controller(object):
|
||||
unit = get_session()
|
||||
session = unit.query(Session).get(session_id)
|
||||
|
||||
if session is None:
|
||||
log.error('Session <SessionId {0}> is not found'
|
||||
''.format(session_id))
|
||||
raise exc.HTTPNotFound()
|
||||
|
||||
if session.environment_id != environment_id:
|
||||
log.error('Session <SessionId {0}> is not tied with Environment '
|
||||
'<EnvId {1}>'.format(session_id, environment_id))
|
||||
|
Loading…
Reference in New Issue
Block a user