This commit changes the 'soltesz.py' module into 'moncommands.py' and
[monitor.git] / plc.py
diff --git a/plc.py b/plc.py
index 7b92445..0506ad5 100644 (file)
--- a/plc.py
+++ b/plc.py
@@ -52,6 +52,10 @@ class PLC:
        def __repr__(self):
                return self.api.__repr__()
 
+def getAuthAPI():
+       import monitorconfig
+       return PLC(monitorconfig.API_AUTH, monitorconfig.API_SERVER)
+
 '''
 Returns list of nodes in dbg as reported by PLC
 '''