From 1627144d367218e4ef94d953395e04fe45caba94 Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Fri, 7 Oct 2016 14:53:35 -0400 Subject: [PATCH] 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 --- murano/db/services/cf_connections.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/murano/db/services/cf_connections.py b/murano/db/services/cf_connections.py index 3aaea375a..c264aae1c 100644 --- a/murano/db/services/cf_connections.py +++ b/murano/db/services/cf_connections.py @@ -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()