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