Пример #1
0
 def set_auth_hash(self, auth_hash):
     if auth_hash:
         self.zk_conn.write(paths.auth_hash(), auth_hash)
     else:
         self.zk_conn.delete(paths.auth_hash())
Пример #2
0
 def auth_hash(self):
     return self.zk_conn.read(paths.auth_hash())