summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-22 17:25:11 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-29 13:01:28 +0200
commit178f253092c2dd8ce5ab81089e27952b19757203 (patch)
tree7e4fb2c2cc64c38dd811b1d7f3e6ec0d3f387087 /ogcp
parent30d27c89511562fa639b566ad3b186be7b074345 (diff)
Always try to load servers list from config file
Otherwise, servers list is not loaded if the configuration file also have an ogServer declared in the deprecated way.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/og_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/og_server.py b/ogcp/og_server.py
index 38d9a01..1b7fa32 100644
--- a/ogcp/og_server.py
+++ b/ogcp/og_server.py
@@ -50,7 +50,7 @@ if {'IP', 'PORT', 'API_TOKEN'} <= app.config.keys():
app.config['IP'],
app.config['PORT'],
app.config['API_TOKEN']))
-else:
+if app.config.get('SERVERS'):
for server in app.config['SERVERS']:
ogserver = OGServer(server['NAME'],
server['IP'],