diff --git a/weblate_web/hetzner.py b/weblate_web/hetzner.py index ed7048c4b..6ab97f349 100644 --- a/weblate_web/hetzner.py +++ b/weblate_web/hetzner.py @@ -45,11 +45,13 @@ def create_storage_folder( def generate_subaccount_data( dirname: str, service: Service, customer: Customer ) -> dict[str, str]: + # Remove not allowed characters + customer_name = customer.name.replace(":", "") return { "homedirectory": f"weblate/{dirname}", "ssh": "1", "external_reachability": "1", - "comment": f"Weblate backup [{service.pk}]: {customer.name}"[:50], + "comment": f"Weblate backup ({service.pk}) {customer_name}"[:50], }