remove an erroneous comment and some needless ones
authorGreg Price <price@mit.edu>
Tue, 18 Nov 2008 02:22:45 +0000 (21:22 -0500)
committerGreg Price <price@mit.edu>
Tue, 18 Nov 2008 02:22:45 +0000 (21:22 -0500)
svn path=/trunk/packages/invirt-console-server/; revision=1713

files/usr/bin/invirt-consolefs

index b6e3844..64f4b2a 100755 (executable)
@@ -43,15 +43,12 @@ class ConsoleFS(routefs.RouteFS):
                return m
        
        def recache(self):
-               """Refresh the local cache of VMs if the cache is more than 15 minutes old
-               """
                if time() - self.lasttime > 5:
                        self.lasttime = time()
                        database.clear_cache()
                        self.machines = dict((machine.name, machine) for machine in database.session.query(database.Machine).all())
 
        def getMachines(self, **kw):
-               """Get the list of VMs in the database"""
                self.recache()
                return self.machines.keys()
        
@@ -71,8 +68,6 @@ class ConsoleFS(routefs.RouteFS):
                        return -errno.EINVAL
        
        def getK5login(self, machine, **kw):
-               """Build the ACL for a machine and turn it into a .k5login file
-               """
                self.recache()
                machine = self.machines[machine]
                users = [acl.user for acl in machine.acl]