From 6aa1bb4eac4800eddaec0a1c5a286b200d973818 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 10 Oct 2026 11:02:45 +0000 Subject: [PATCH] Document what the API refuses in a settings update --- src/tailscale/tailscale.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tailscale/tailscale.py b/src/tailscale/tailscale.py index 95dea26c..7b518912 100644 --- a/src/tailscale/tailscale.py +++ b/src/tailscale/tailscale.py @@ -1011,7 +1011,8 @@ async def update_tailnet_settings( # noqa: PLR0913 # pylint: disable=too-many- """Update the settings for the tailnet. Only provided parameters are updated; omitted parameters - are left unchanged. + are left unchanged. The API refuses the whole update when one of + them is not allowed, like a feature the billing plan lacks. Args: ---- @@ -1022,7 +1023,8 @@ async def update_tailnet_settings( # noqa: PLR0913 # pylint: disable=too-many- users_role_allowed_to_join_external_tailnets: Role allowed to join external tailnets ("none", "admin", "member"). network_flow_logging_on: Whether network flow logging is on. - regional_routing_on: Whether regional routing is on. + regional_routing_on: Whether regional routing is on. Superseded + by route_selection; the API refuses both in one update. posture_identity_collection_on: Whether posture identity collection is on. https_enabled: Whether HTTPS certificates are enabled.