LBaaS: Set correct nullable parameter for agent_id

Corrected the following model according to database
content:
 - NOT NULL for PoolLoadbalancerAgentBinding agent_id;

Partial-bug: #1296282

Change-Id: I1f11ec2e8f4c16f58dd8d4e6429e46eaedaec945
This commit is contained in:
Ann Kamyshnikova 2014-03-21 17:08:23 +04:00
parent a4e1ad0cb5
commit 8ec571e1d1
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ class PoolLoadbalancerAgentBinding(model_base.BASEV2):
primary_key=True)
agent = orm.relation(agents_db.Agent)
agent_id = sa.Column(sa.String(36), sa.ForeignKey("agents.id",
ondelete='CASCADE'))
ondelete='CASCADE'),
nullable=False)
class LbaasAgentSchedulerDbMixin(agentschedulers_db.AgentSchedulerDbMixin,