def convert_conf(self, data, reply):
        """
        clientPort=2181
        dataDir=/usr/local/var/run/zookeeper/data/version-2
        dataLogDir=/usr/local/var/run/zookeeper/data/version-2
        tickTime=2000
        maxClientCnxns=10
        minSessionTimeout=4000
        maxSessionTimeout=40000
        serverId=0
        """

        for line in reply.split('\n'):
            if not line:
                continue
            key, value = line.split('=')
            if key in ['dataDir', 'dataLogDir']:
                continue
            data[key] = int(value)
        return data
dataset/ETHPy150Open serverdensity/sd-agent-plugins/ZooKeeper/ZooKeeper.py/ZooKeeper.convert_conf/original