Merge "Fix update inventory for multiple providers"

This commit is contained in:
Jenkins 2016-06-10 05:07:20 +00:00 committed by Gerrit Code Review
commit d9e8220b00

View File

@ -308,8 +308,8 @@ class Inventory(API_BASE):
allocation_ratio = Column(Float, nullable=False) allocation_ratio = Column(Float, nullable=False)
resource_provider = orm.relationship( resource_provider = orm.relationship(
"ResourceProvider", "ResourceProvider",
primaryjoin=('and_(Inventory.resource_provider_id == ' primaryjoin=('Inventory.resource_provider_id == '
'ResourceProvider.id)'), 'ResourceProvider.id'),
foreign_keys=resource_provider_id) foreign_keys=resource_provider_id)