Remove unused _check_string_length()
On v2.1 API, the input validation is implemented with json-schema and _check_string_length() becomes unused now. This patch removes the method for cleanup. Change-Id: I89d5e2ac7f4cd6e79dba13803ca796d9b8bc7165
This commit is contained in:
parent
2dae8b4c87
commit
f801bb3486
|
@ -428,15 +428,6 @@ class ServersController(wsgi.Controller):
|
|||
req.cache_db_instance(instance)
|
||||
return instance
|
||||
|
||||
def _check_string_length(self, value, name, max_length=None):
|
||||
try:
|
||||
if isinstance(value, six.string_types):
|
||||
value = value.strip()
|
||||
utils.check_string_length(value, name, min_length=1,
|
||||
max_length=max_length)
|
||||
except exception.InvalidInput as e:
|
||||
raise exc.HTTPBadRequest(explanation=e.format_message())
|
||||
|
||||
def _get_requested_networks(self, requested_networks):
|
||||
"""Create a list of requested networks from the networks attribute."""
|
||||
networks = []
|
||||
|
|
Loading…
Reference in New Issue