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: I065dc1a81dc0c23cc9a264399a99255e8272b07d
Closes-Bug: #1630747
This commit is contained in:
Felipe Monteiro 2016-10-05 16:33:47 -04:00
parent f17a8f3dae
commit 9ff3f49f23
1 changed files with 1 additions and 2 deletions

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