Fix SQL Error with fixed ips under devstack/postgresql

Postgresql does not allow sql that mix integer and booleans.
Switch to check if deleted flag is set to 0

Fixes LP# 1109889

Change-Id: Icf03aa9591d398ba7d12f0db91e43df140e0df50
This commit is contained in:
Davanum Srinivas 2013-01-29 20:57:38 -05:00
parent 90e38ab640
commit dff7b9f344

View File

@ -724,7 +724,7 @@ class FixedIp(BASE, NovaBase):
foreign_keys=network_id,
primaryjoin='and_('
'FixedIp.network_id == Network.id,'
'FixedIp.deleted == False)')
'FixedIp.deleted == 0)')
class FloatingIp(BASE, NovaBase):