From 0a57fe8f4b35f1d53e52f490e282e98abd2d73f6 Mon Sep 17 00:00:00 2001 From: baigk Date: Fri, 1 Jan 2016 10:23:28 +0800 Subject: [PATCH] parameter is wrong when update clusterhost state the session parameter doesn't input when update clusterhost state Change-Id: Ie1d325722a49b6e3f54338fb15470c2c7cacf8dc Signed-off-by: baigk --- compass/db/api/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compass/db/api/cluster.py b/compass/db/api/cluster.py index bb9805cd..d82f9514 100644 --- a/compass/db/api/cluster.py +++ b/compass/db/api/cluster.py @@ -2165,7 +2165,7 @@ def update_clusterhost_state_internal( clusterhost = _get_clusterhost(clusterhost_id, session=session) return _update_clusterhost_state( clusterhost, from_database_only=from_database_only, - session=None, **kwargs + session=session, **kwargs )