From c41457aec03df5823d932ea83b40e005bc45ca1b Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Fri, 7 Oct 2016 14:55:49 -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: Ie8e050a1d1508d9b6429aae7d3a7176a001c92e7 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 9d221debb..f529564a6 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()