コード例 #1
0
ファイル: test_auth.py プロジェクト: jdurgin/glance
 def _is_mutable(self, tenant, owner, is_admin=False):
     context = glance.context.RequestContext(tenant=tenant,
                                             is_admin=is_admin)
     image = self.image_factory.new_image(owner=owner)
     return authorization.is_image_mutable(context, image)
コード例 #2
0
 def _is_mutable(self, tenant, owner, is_admin=False):
     context = glance.context.RequestContext(tenant=tenant,
                                             is_admin=is_admin)
     image = self.image_factory.new_image(owner=owner)
     return authorization.is_image_mutable(context, image)