From 3b748fcf21738ba0f14778623d662a0dd0f3f5bf Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 26 Jan 2024 23:26:13 -0500 Subject: linhes-system: add_storage.py: move mythdb call after checking sg selection --- linhes/linhes-system/add_storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linhes/linhes-system/add_storage.py b/linhes/linhes-system/add_storage.py index 8821016..cc6feb5 100755 --- a/linhes/linhes-system/add_storage.py +++ b/linhes/linhes-system/add_storage.py @@ -675,7 +675,7 @@ def main(scan_only, destruction, no_mount, install_call, dir_sg): if len(process_list) > 0: - DB = MythDB() + #DB = MythDB() host=gethostname() for y in process_list: system_drive_list.remove(y) @@ -714,6 +714,7 @@ def main(scan_only, destruction, no_mount, install_call, dir_sg): i.symlink_disk() if dir_sg == True: + DB = MythDB() i.add_sg(DB,host,SG_MAP) print("-----") -- cgit v0.12