Skip to content

Commit

Permalink
fix: avoid unsupported characters
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 27, 2024
1 parent 546c0ec commit fbece6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weblate_web/hetzner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}


Expand Down

0 comments on commit fbece6d

Please sign in to comment.