Whoops - I should actually check code after I write it; fix the new RemConfFS
[invirt/packages/invirt-remote.git] / files / usr / sbin / sipb-xen-remconffs
index 3f640fc..275ba88 100755 (executable)
@@ -48,7 +48,7 @@ class RemConfFS(routefs.RouteFS):
        def getacl(self, machine, **kw):
                """Build the ACL file for a machine
                """
-               machine = database.Machine.get_by(name=machine)
+               machine = database.Machine.query().filter_by(name=machine).one()
                users = [acl.user for acl in machine.acl]
                return "\n".join(map(self.userToPrinc, users)
                                 + ['include /etc/remctl/acl/web',