From 7fd97fe0b29ded1e89e8fb01c35bb3f121641533 Mon Sep 17 00:00:00 2001 From: nhnn Date: Wed, 24 Jul 2024 15:02:56 +0300 Subject: [PATCH] fix: add location to monitoring migration --- selfprivacy_api/migrations/add_monitoring.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/migrations/add_monitoring.py b/selfprivacy_api/migrations/add_monitoring.py index b717808..965e234 100644 --- a/selfprivacy_api/migrations/add_monitoring.py +++ b/selfprivacy_api/migrations/add_monitoring.py @@ -2,6 +2,7 @@ from selfprivacy_api.migrations.migration import Migration from selfprivacy_api.services.flake_service_manager import FlakeServiceManager from selfprivacy_api.utils import ReadUserData, WriteUserData +from selfprivacy_api.utils.block_devices import BlockDevices class AddMonitoring(Migration): @@ -31,5 +32,6 @@ class AddMonitoring(Migration): with WriteUserData() as data: if "monitoring" not in data["modules"]: data["modules"]["monitoring"] = { - "enable": True + "enable": True, + "location": BlockDevices().get_root_block_device().name }