X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/66cccc3c93b4cd7d98c14564db63ee9831c4047e..2fb52b912876c89ec4f93ab296bf514e966b0ce1:/cache_acls.py?ds=sidebyside diff --git a/cache_acls.py b/cache_acls.py index 3b68129..353574a 100644 --- a/cache_acls.py +++ b/cache_acls.py @@ -40,8 +40,8 @@ if __name__ == '__main__': people.update(expandName(m.administrator)) print '%s: %s' % (m.name, ' '.join(people)) transaction = ctx.current.create_transaction() - for u in m.users: - ctx.current.delete(u) + for a in m.acl: + ctx.current.delete(a) for p in people: ma = MachineAccess(machine_id=m.machine_id, user=p) ctx.current.save(ma)