mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 15:33:49 +02: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)
|
JSONRPCWebSocket.register_destination(destination, instance.name)
|
||||||
instance.start() # starts the new process
|
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):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
@ -147,7 +158,10 @@ class Server(object):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# FIXME: debug mode!
|
# FIXME: debug mode!
|
||||||
cloud_config = Config.instance().get_section_config("CLOUD_SERVER")
|
try:
|
||||||
|
cloud_config = Config.instance().get_section_config("CLOUD_SERVER")
|
||||||
|
except KeyError:
|
||||||
|
cloud_config = self._dummy_cloud_config()
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
"debug":True,
|
"debug":True,
|
||||||
|
Loading…
Reference in New Issue
Block a user