def check_policy(context, action, target_obj=None): _action = 'trigger:%s' % action policy.enforce(context, _action, target_obj)
def check_policy(context, action, target_obj=None): _action = 'scheduled_operation:%s' % action policy.enforce(context, _action, target_obj)