]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/mgr_module: fix calc_pg_upmaps
authorSage Weil <sage@redhat.com>
Thu, 2 Nov 2017 21:18:03 +0000 (16:18 -0500)
committerSage Weil <sage@redhat.com>
Fri, 3 Nov 2017 13:43:06 +0000 (08:43 -0500)
This was fixed in the object cleanup.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit ed442164d52c803916ca43a5ed76047089d3da66)

src/pybind/mgr/mgr_module.py

index 958d49c234aea33c01bb45bff1f4fe7e187797e4..1abbcc5cd4fbe02c4fc635c3586ff6ed393b5972 100644 (file)
@@ -99,7 +99,7 @@ class OSDMap(ceph_module.BasePyOSDMap):
     def calc_pg_upmaps(self, inc,
                        max_deviation=.01, max_iterations=10, pools=[]):
         return self._calc_pg_upmaps(
-            inc._handle,
+            inc,
             max_deviation, max_iterations, pools)
 
     def map_pool_pgs_up(self, poolid):