(cls, driver)
Confirm that volume driver is supported by Magnum for this COE.
Confirm that volume driver is supported by Magnum for this COE.
Confirm that volume driver is supported by Magnum for this COE .
def _validate_volume_driver_supported(cls, driver):
        """Confirm that volume driver is supported by Magnum for this COE."""
        if driver not in cls.supported_volume_driver:
            raise exception.InvalidParameterValue(_(
                'Volume driver type %(driver)s is not supported, '
                'expecting a %(supported_volume_driver)s volume driver.') % {
                    'driver': driver,
                    'supported_volume_driver': '/'.join(
                        cls.supported_volume_driver + ['unspecified'])})
def _validate_volume_driver_supported ( cls , driver ) : if driver not in cls . supported_volume_driver : raise exception . InvalidParameterValue ( _ ( 'Volume driver type %(driver)s is not supported, ' 'expecting a %(supported_volume_driver)s volume driver.' ) % { 'driver' : driver , 'supported_volume_driver' : '/' . join ( cls . supported_volume_driver + [ 'unspecified' ] ) } )