From 61839b33db42e1865e8df019655f25b70ec97669 Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Fri, 24 Aug 2012 13:34:30 -0600 Subject: Remove unused permitted_instance_types Commit 5ea7db9b removed the ArchFilter and moved its functionality to the ImagePropertiesFilter, which uses 'supported_instances' from the compute nodes to determine if a node satisfies the arch, preferred hypervisor, and virtual machine mode requested by the instance. permitted_instance_types is no longer used and can be removed. Change-Id: Idf9d72746d7c3dcd2a7385913823df122eaa7cd6 --- nova/virt/libvirt/driver.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'nova/virt') diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index c4ebcf931..4e6e77a8d 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -2127,11 +2127,6 @@ class LibvirtDriver(driver.ComputeDriver): features.append(f.name) cpu_info['features'] = features - guest_arches = list() - for g in caps.guests: - guest_arches.append(g.arch) - cpu_info['permitted_instance_types'] = guest_arches - # TODO(berrange): why do we bother converting the # libvirt capabilities XML into a special JSON format ? # The data format is different across all the drivers -- cgit