diff --git a/oioswift/common/middleware/container_hierarchy.py b/oioswift/common/middleware/container_hierarchy.py index 2c30f1d1..6aa438ce 100644 --- a/oioswift/common/middleware/container_hierarchy.py +++ b/oioswift/common/middleware/container_hierarchy.py @@ -115,7 +115,7 @@ def conn(self): def conn_slave(self): """Retrieve Redis connection (normal or sentinel)""" if self._sentinel: - return self._sentinel.master_for(self._sentinel_name) + return self._sentinel.slave_for(self._sentinel_name) return self.conn def register_script(self, script):