]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/restful/api/crush.py
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / restful / api / crush.py
index 785620e2285b57126bb59ee89037680f3219a7cd..79f9007b6fdc8f1cff07b79775bef1dd71c731b7 100644 (file)
@@ -1,8 +1,7 @@
 from pecan import expose
 from pecan.rest import RestController
 
-from restful import common, module
-from collections import defaultdict
+from restful import common, context
 
 from restful.decorators import auth
 
@@ -14,7 +13,7 @@ class CrushRule(RestController):
         """
         Show crush rules
         """
-        crush = module.instance.get('osd_map_crush')
+        crush = context.instance.get('osd_map_crush')
         rules = crush['rules']
 
         for rule in rules: