Fix InstanceReservations affinity nullable flag
Instance reservations can be created with the affinity parameter set to True (affinity), False (anti-affinity) or null (no affinity requested). Change Icf26d1b7dffe64f82d7084dcebb5df1c7c9f106d updated the database schema with Alembic but missed updating the SQLAlchemy model. Change-Id: Ic754692722a784b1cb47ffeebce58136a528ad14
This commit is contained in:
parent
adf68a71bb
commit
9aa976ae13
|
@ -204,7 +204,7 @@ class InstanceReservations(mb.BlazarBase):
|
||||||
memory_mb = sa.Column(sa.Integer, nullable=False)
|
memory_mb = sa.Column(sa.Integer, nullable=False)
|
||||||
disk_gb = sa.Column(sa.Integer, nullable=False)
|
disk_gb = sa.Column(sa.Integer, nullable=False)
|
||||||
amount = sa.Column(sa.Integer, nullable=False)
|
amount = sa.Column(sa.Integer, nullable=False)
|
||||||
affinity = sa.Column(sa.Boolean, nullable=False)
|
affinity = sa.Column(sa.Boolean, nullable=True)
|
||||||
resource_properties = sa.Column(MediumText(), nullable=True)
|
resource_properties = sa.Column(MediumText(), nullable=True)
|
||||||
flavor_id = sa.Column(sa.String(36), nullable=True)
|
flavor_id = sa.Column(sa.String(36), nullable=True)
|
||||||
aggregate_id = sa.Column(sa.Integer, nullable=True)
|
aggregate_id = sa.Column(sa.Integer, nullable=True)
|
||||||
|
|
Loading…
Reference in New Issue