mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-20 16:20:18 +00:00
Use Pydantic to validate the server config file.
This commit is contained in:
@ -85,13 +85,9 @@ class Project:
|
||||
"variables": self._variables
|
||||
}
|
||||
|
||||
def _config(self):
|
||||
|
||||
return Config.instance().get_section_config("Server")
|
||||
|
||||
def is_local(self):
|
||||
|
||||
return self._config().getboolean("local", False)
|
||||
return Config.instance().settings.Server.local
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
|
Reference in New Issue
Block a user