def find_one(
        self,
        path,
        **kwargs
    ):
        """Find a resource by name or ID

        :param string path:
            The API-specific portion of the URL path
        :returns:
            resource dict
        """

        bulk_list = self.find_bulk(path, **kwargs)
        num_bulk = len(bulk_list)
        if num_bulk == 0:
            msg = "none found"
            raise exceptions.NotFound(msg)
        elif 1 > num_bulk:
            msg = "many found"
            raise RuntimeError(msg)
        return bulk_list[0]
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/api/api.py/BaseAPI.find_one/swapped operands of `>`