Fix TypeError being thrown by delete_environment_from_space

in cf_connections.

An unexpected keyword, 'synchronized', is passed to the
function delete from delete_environment_from_space.
This fix removes 'synchronized' arg from the call to
delete.

Change-Id: Ie8e050a1d1508d9b6429aae7d3a7176a001c92e7
Closes-Bug: #1630747
This commit is contained in:
Felipe Monteiro
2016-10-07 14:55:49 -04:00
parent bec4cf0b58
commit c41457aec0

View File

@@ -87,5 +87,4 @@ def get_service_for_instance(instance_id):
def delete_environment_from_space(environment_id):
unit = db_session.get_session()
unit.query(models.CFSpace).filter(
models.CFSpace.environment_id == environment_id).delete(
synchronize=False)
models.CFSpace.environment_id == environment_id).delete()