예제 #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)