From 44f81e3377fea775ca42c63f6fcce093bdfc17b0 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Tue, 8 Apr 2014 14:51:52 +0900 Subject: [PATCH] Remove the unused _validate_device_name() Since the commit I898ae56539c6101680983d1eca4bce6d92bd5ce6, _validate_device_name() method has been unused. This patch removes the method. Change-Id: I642b71385432801eb8fdd35484fbcb3ed5efa795 --- nova/api/openstack/compute/plugins/v3/servers.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nova/api/openstack/compute/plugins/v3/servers.py b/nova/api/openstack/compute/plugins/v3/servers.py index d2189436f14f..d152d3129413 100644 --- a/nova/api/openstack/compute/plugins/v3/servers.py +++ b/nova/api/openstack/compute/plugins/v3/servers.py @@ -314,13 +314,6 @@ class ServersController(wsgi.Controller): def _validate_server_name(self, value): self._check_string_length(value, 'Server name', max_length=255) - def _validate_device_name(self, value): - self._check_string_length(value, 'Device name', max_length=255) - - if ' ' in value: - msg = _("Device name cannot include spaces.") - raise exc.HTTPBadRequest(explanation=msg) - def _get_requested_networks(self, requested_networks): """Create a list of requested networks from the networks attribute.""" networks = []