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
"""
Show crush rules
"""
- crush = module.instance.get('osd_map_crush')
+ crush = context.instance.get('osd_map_crush')
rules = crush['rules']
for rule in rules: