fix coresched locating cgroup and reduce verbosity
[nodemanager.git] / plcapi.py
index ca411df..acccda0 100644 (file)
--- a/plcapi.py
+++ b/plcapi.py
@@ -1,6 +1,3 @@
-# $Id$
-# $URL$
-
 import safexmlrpc
 import hmac
 try:
@@ -41,7 +38,7 @@ class PLCAPI:
 
 
     def update_session(self, f="/usr/boot/plnode.txt"):
-        # try authenticatipopulate /etc.planetlab/session 
+        # try authenticatipopulate /etc.planetlab/session
         def plnode(key):
             try:
                 return [i[:-1].split('=') for i in open(f).readlines() if i.startswith(key)][0][1].strip('"')
@@ -53,13 +50,13 @@ class PLCAPI:
         open("/etc/planetlab/session", 'w').write(plc.GetSession().strip())
         self.session = open("/etc/planetlab/session").read().strip()
 
-        
+
     def check_authentication(self):
         authstatus = False
         if self.key or self.session:
-            try: 
+            try:
                 authstatus = self.AuthCheck()
-            except: 
+            except:
                 logger.log_exc("plcapi: failed in plcapi.check_authentication")
         return authstatus