mirror of
https://github.com/smittix/intercept.git
synced 2026-05-27 02:04:45 -07:00
12 lines
308 B
Python
12 lines
308 B
Python
"""Drone Ops policy helpers."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
def required_approvals_for_action(action_type: str) -> int:
|
|
"""Return required approvals for a given action type."""
|
|
action = (action_type or '').strip().lower()
|
|
if action.startswith('passive_'):
|
|
return 1
|
|
return 2
|