def _validate_flavor_service_type(validate_type, valid_values=None):
 if (not directory.get_plugin(validate_type)):
  raise InvalidFlavorServiceType(service_type=validate_type)

def _validate_flavor_service_type ( validate_type , valid_values = None ) : if ( not directory . get_plugin ( validate_type ) ) : raise InvalidFlavorServiceType ( service_type = validate_type )
ensure requested flavor service type plugin is loaded .