(cls, server_type)
Confirm that server type is supported by Magnum for this COE.
Confirm that server type is supported by Magnum for this COE.
Confirm that server type is supported by Magnum for this COE .
def _validate_server_type(cls, server_type):
        """Confirm that server type is supported by Magnum for this COE."""
        if server_type not in cls.supported_server_types:
            raise exception.InvalidParameterValue(_(
                'Server type %(server_type)s is not supported, '
                'expecting a %(supported_server_types)s server type.') % {
                    'server_type': server_type,
                    'supported_server_types': '/'.join(
                        cls.supported_server_types + ['unspecified'])})
def _validate_server_type ( cls , server_type ) : if server_type not in cls . supported_server_types : raise exception . InvalidParameterValue ( _ ( 'Server type %(server_type)s is not supported, ' 'expecting a %(supported_server_types)s server type.' ) % { 'server_type' : server_type , 'supported_server_types' : '/' . join ( cls . supported_server_types + [ 'unspecified' ] ) } )