def _algorithm_to_value(self, algorithm):
        """
        Return string value for the provided algorithm.

        :param value: Algorithm enum.
        :type  value: :class:`Algorithm`

        :rtype: ``str``
        """
        try:
            return self._ALGORITHM_TO_VALUE_MAP[algorithm]
        except KeyError:
            raise LibcloudError(value=(algorithm) % 'Invalid algorithm: %s',
                                driver=self)
dataset/ETHPy150Open apache/libcloud/libcloud/loadbalancer/base.py/Driver._algorithm_to_value/swapped operands of `%`