Skip to content

Commit

Permalink
Only use lowercase keys in redis
Browse files Browse the repository at this point in the history
  • Loading branch information
BitK committed Oct 28, 2021
1 parent 61a85c7 commit df6b4b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockers/manager/back/app/api/traefik.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def settings_to_kv(settings, prefix=""):
elif isinstance(v, list):
yield from settings_to_kv(dict(enumerate(v)), f"{prefix}/{k}")
elif isinstance(v, bool):
yield f"{prefix}/{k}", str(v).lower()
yield f"{prefix}/{k.lower()}", str(v).lower()
else:
yield f"{prefix}/{k}", v
yield f"{prefix}/{k.lower()}", v


async def create_from_object(client, obj, prefix=""):
Expand Down

0 comments on commit df6b4b2

Please sign in to comment.