Fix bug with session during deploy

Change-Id: Ic931b8f1d01eed43cbbcff29f8aceb80ae6931ee
Closes-Bug: #1303751
This commit is contained in:
Ekaterina Fedorova 2014-04-07 16:35:07 +04:00 committed by Gerrit Code Review
parent cec21ec9e5
commit a4f91b3176

View File

@ -118,10 +118,8 @@ class SessionServices(object):
:param unit: SQLalchemy session
:param token: auth token that is going to be used by orchestration
"""
#unit = get_session()
#Set X-Auth-Token for conductor
unit = db_session.get_session()
environment = unit.query(models.Environment).get(
session.environment_id)