summaryrefslogtreecommitdiff
path: root/nova/api/openstack/compute/plugins
diff options
context:
space:
mode:
authorjichenjc <jichenjc@cn.ibm.com>2014-07-25 07:40:25 +0800
committerJohn Garbutt <john@johngarbutt.com>2014-10-10 14:53:18 +0000
commit76089c367b9099081ed675ced7b8503697719453 (patch)
tree0a324e66814a450310eb40bccaaa71e43e34eca6 /nova/api/openstack/compute/plugins
parent5a37d543efd437ad957e5655155e2e68236400ab (diff)
downloadnova-76089c367b9099081ed675ced7b8503697719453.tar.gz
Remove init for object list in api layer
There is a list initialization in api layer server code, because objectListBase already handles that init process, so remove it from api layer. Change-Id: I84b0641ec2088d2920d3757ac1a99c301fc0bcb0
Diffstat (limited to 'nova/api/openstack/compute/plugins')
-rw-r--r--nova/api/openstack/compute/plugins/v3/servers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/api/openstack/compute/plugins/v3/servers.py b/nova/api/openstack/compute/plugins/v3/servers.py
index 534e1c3d11..39e4a439af 100644
--- a/nova/api/openstack/compute/plugins/v3/servers.py
+++ b/nova/api/openstack/compute/plugins/v3/servers.py
@@ -332,8 +332,7 @@ class ServersController(wsgi.Controller):
except exception.FlavorNotFound:
log_msg = _("Flavor '%s' could not be found ")
LOG.debug(log_msg, search_opts['flavor'])
- # TODO(mriedem): Move to ObjectListBase.__init__ for empty lists.
- instance_list = objects.InstanceList(objects=[])
+ instance_list = objects.InstanceList()
if is_detail:
instance_list.fill_faults()