コード例 #1
0
ファイル: triggers.py プロジェクト: jiaopengjugit/karbor
def check_policy(context, action, target_obj=None):
    _action = 'trigger:%s' % action
    policy.enforce(context, _action, target_obj)
コード例 #2
0
ファイル: triggers.py プロジェクト: openstack/smaug
def check_policy(context, action, target_obj=None):
    _action = 'trigger:%s' % action
    policy.enforce(context, _action, target_obj)
コード例 #3
0
def check_policy(context, action, target_obj=None):
    _action = 'scheduled_operation:%s' % action
    policy.enforce(context, _action, target_obj)
コード例 #4
0
def check_policy(context, action, target_obj=None):
    _action = 'scheduled_operation:%s' % action
    policy.enforce(context, _action, target_obj)