acl = make_acl(u'ip', u'10.0.0.0/24', all=True)
print([acl])
Output looks right to me:
[ACL(perms=31, acl_list=['ALL'], id=Id(scheme=u'ip', id=u'10.0.0.0/24'))]
But I get the exception:
Traceback (most recent call last):
File "test.py", line 110, in <module>
zk.set_acls("/my/favorite", [acl])
File "/usr/lib/python2.7/site-packages/kazoo/client.py", line 1187, in set_acls
return self.set_acls_async(path, acls, version).get()
File "/usr/lib/python2.7/site-packages/kazoo/handlers/utils.py", line 79, in get
raise self._exception
kazoo.exceptions.InvalidACLError
Am I doing something wrong, or is "ip" just not supported?