INNER CODE UNIT · Python
_request_account_scope
ministackorg/ministack · ministack/app.py:225
def _request_account_scope(access_key_id: str) -> str:
"""Return the tenant selector for an AWS access key."""
return find_iam_access_key_account(access_key_id) or access_key_id
# Execution state of ready.d scripts — surfaced via /_ministack/health and /_ministack/ready.
# status: "pending" (not started) | "running" | "completed" (all scripts finished, errors included)
_ready_scripts_state: dict = {
"status": "pending",
"total": 0,
"completed": 0,
"failed": 0,
}
class _ErrorModule:
"""Stub returned when a service module fails to import."""
def __init__(self, name: str, error: str):