示例#1
0
 def handler(self, ctx):
     ctx = context.make_admin_context()
     context.set_ctx(ctx)
     func(self, ctx)
     context.set_ctx(None)
示例#2
0
文件: periodic.py 项目: viperf/magnum
 def handler(self, ctx):
     ctx = context.make_admin_context(all_tenants=True)
     context.set_ctx(ctx)
     func(self, ctx)
     context.set_ctx(None)
示例#3
0
 def handler(self, ctx):
     ctx = context.make_admin_context(all_tenants=True)
     context.set_ctx(ctx)
     func(self, ctx)
     context.set_ctx(None)
示例#4
0
 def handler(self, ctx):
     ctx = context.make_admin_context()
     context.set_ctx(ctx)
     func(self, ctx)
     context.set_ctx(None)