mirror of
https://github.com/dw-0/kiauh.git
synced 2026-01-01 20:23:35 +05:00
refactor(ConfigManager): automatically read config upon ConfigManager instance init
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -156,7 +156,6 @@ class Moonraker(BaseInstance):
|
||||
return None
|
||||
|
||||
cm = ConfigManager(cfg_file=self.cfg_file)
|
||||
cm.read_config()
|
||||
port = cm.get_value("server", "port")
|
||||
|
||||
return int(port) if port is not None else port
|
||||
|
||||
Reference in New Issue
Block a user