From ee7cf07294fe6f6dd012f9176ddae899cbb68be7 Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Wed, 10 Apr 2024 12:07:50 +0200 Subject: [PATCH] replace . for hash on names databases --- orchestra/contrib/databases/backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/contrib/databases/backends.py b/orchestra/contrib/databases/backends.py index 327f9461..304b692c 100644 --- a/orchestra/contrib/databases/backends.py +++ b/orchestra/contrib/databases/backends.py @@ -178,7 +178,7 @@ class MysqlDisk(ServiceMonitor): def get_context(self, db): context = { 'db_name': db.name, - 'db_dirname': db.name.replace('-', '@002d'), + 'db_dirname': db.name.replace('-', '@002d').replace('.', '@002e'), 'db_id': db.pk, 'db_type': db.type, }