def _set_ip_to_id_map(self, ip):
        """ Sets the reverse map for IP-based lookups. """
        try:
            self.conn.zk.set(self._zk_ip_path(ip), self.conn.instance_id)
        except NoNodeError:
            logger.info(ip % "No IP to ID map node for %s")
            try:
                self.conn.zk.create(self._zk_ip_path(ip), self.conn.instance_id)
            except NoNodeError:
                self.conn.zk.ensure_path(self._zk_ip_path(ip))
                self._set_ip_to_id_map(ip)
dataset/ETHPy150Open facebookarchive/neti/neti/registry.py/Registry._set_ip_to_id_map/swapped operands of `%`