mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Testing out dummy config
This commit is contained in:
parent
f876a862c4
commit
17e4b51d18
@ -140,6 +140,17 @@ class Server(object):
|
||||
JSONRPCWebSocket.register_destination(destination, instance.name)
|
||||
instance.start() # starts the new process
|
||||
|
||||
def _dummy_cloud_config(self):
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config["CLOUD_SERVER"] = {
|
||||
"WEB_AUTH_ENABLED" : "no",
|
||||
"WEB_USERNAME" : "",
|
||||
"WEB_PASSWORD" : "",
|
||||
"SSL_ENABLED" : "no",
|
||||
}
|
||||
|
||||
return config["CLOUD_SERVER"]
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
@ -147,7 +158,10 @@ class Server(object):
|
||||
"""
|
||||
|
||||
# FIXME: debug mode!
|
||||
try:
|
||||
cloud_config = Config.instance().get_section_config("CLOUD_SERVER")
|
||||
except KeyError:
|
||||
cloud_config = self._dummy_cloud_config()
|
||||
|
||||
settings = {
|
||||
"debug":True,
|
||||
|
Loading…
Reference in New Issue
Block a user