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',