summaryrefslogtreecommitdiffstats
path: root/ogcp/og_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/og_server.py')
-rw-r--r--ogcp/og_server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/og_server.py b/ogcp/og_server.py
index 0f542ff..38d9a01 100644
--- a/ogcp/og_server.py
+++ b/ogcp/og_server.py
@@ -37,6 +37,11 @@ class OGServer:
json=payload)
return r
+ @property
+ def id(self):
+ ip = self.ip.replace('.', '-')
+ return f'server_{ip}_{self.port}'
+
servers = []
if {'IP', 'PORT', 'API_TOKEN'} <= app.config.keys():