mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
Configs are initialized on import so Manager is started for all processes.
This commit is contained in:
parent
08065155cf
commit
f2af5e048b
9 changed files with 51 additions and 64 deletions
|
|
@ -127,7 +127,7 @@ class InventoriesConfig(ConfigFile):
|
|||
self.update({'version': value})
|
||||
|
||||
|
||||
INVENTORIES_CONFIG: InventoriesConfig = None
|
||||
INVENTORIES_CONFIG: InventoriesConfig = InventoriesConfig(global_=True)
|
||||
TEST_INVENTORIES_CONFIG: InventoriesConfig = None
|
||||
|
||||
|
||||
|
|
@ -137,10 +137,6 @@ def get_inventories_config():
|
|||
return TEST_INVENTORIES_CONFIG
|
||||
|
||||
global INVENTORIES_CONFIG
|
||||
if isinstance(INVENTORIES_CONFIG, ConfigFile):
|
||||
return INVENTORIES_CONFIG
|
||||
|
||||
INVENTORIES_CONFIG = InventoriesConfig()
|
||||
return INVENTORIES_CONFIG
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue