Configs are initialized on import so Manager is started for all processes.

This commit is contained in:
Roland 2022-02-16 23:05:43 -07:00
parent 08065155cf
commit f2af5e048b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
9 changed files with 51 additions and 64 deletions

View file

@ -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