mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 04:01:27 +00:00
fix: add location to monitoring migration
This commit is contained in:
parent
e9cecd6789
commit
7fd97fe0b2
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue