From 26c7a276cc8f8ff9b36329ce1bf634cb5befc4c6 Mon Sep 17 00:00:00 2001 From: volkansahin Date: Thu, 6 Jul 2017 11:43:00 +0300 Subject: [PATCH] ip added for ltsp servers --- opt/ahenk/base/system/system.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opt/ahenk/base/system/system.py b/opt/ahenk/base/system/system.py index 652bc1d..5e8e7fb 100644 --- a/opt/ahenk/base/system/system.py +++ b/opt/ahenk/base/system/system.py @@ -120,6 +120,15 @@ class System: except: return None + @staticmethod + def ip(): + system = System() + try: + ip = system.db_service.select_one_result('session', 'ip') + return ip + except: + return None + @staticmethod def get_pid_number(): pid_number = None