Replace dots with underscores when creating env var examples

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-10-27 00:29:57 -03:00
parent 0b53419da7
commit b067c1187e

View File

@@ -156,7 +156,7 @@ sudo pihole-FTL --config dns.dnssec=true
# Compose full key for CLI/env var examples # Compose full key for CLI/env var examples
full_key = ".".join(section_stack + [key]) full_key = ".".join(section_stack + [key])
env_var = "FTLCONF_" + "_".join(section_stack + [key]) env_var = "FTLCONF_" + full_key.replace(".", "_")
# TOML example tab # TOML example tab
documentation.append(f'=== "TOML"') documentation.append(f'=== "TOML"')