X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/blobdiff_plain/0831546bfd6cbfa9ec41f6e82b28d9a84fcf1cec..a2cf90a67c235d1a1d5738d2141480faa09aa93c:/server/usr/bin/invirt-consolefs?ds=inline diff --git a/server/usr/bin/invirt-consolefs b/server/usr/bin/invirt-consolefs index a3f75ec..359ad16 100755 --- a/server/usr/bin/invirt-consolefs +++ b/server/usr/bin/invirt-consolefs @@ -46,7 +46,7 @@ class ConsoleFS(routefs.RouteFS): 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()) + self.machines = dict((machine.name, machine) for machine in database.Machine.query.all()) def getMachines(self, **kw): self.recache() @@ -85,7 +85,7 @@ class ConsoleFS(routefs.RouteFS): (princ, realm) = user.split('@') else: princ = user - realm = config.authn[0].realm + realm = config.kerberos.realm return princ.replace('.', '/') + '@' + realm