X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/0432c879b481c78ab3e34edb03ae82c1cff17ceb..072de5166748a83818cb7acff06cdb903a060b86:/files/usr/sbin/sipb-xen-remconffs diff --git a/files/usr/sbin/sipb-xen-remconffs b/files/usr/sbin/sipb-xen-remconffs index 3f640fc..275ba88 100755 --- a/files/usr/sbin/sipb-xen-remconffs +++ b/files/usr/sbin/sipb-xen-remconffs @@ -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',