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: I90cf75f8cfad5afac31e5afe35d82fbddb362bde
Closes-Bug: #1630747
This commit is contained in:
Felipe Monteiro
2016-10-07 14:53:35 -04:00
parent 76e7d9e3ad
commit 1627144d36

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()