Merge "Only call numa_fit_instance_to_host if necessary"

This commit is contained in:
Zuul
2018-01-27 00:16:06 +00:00
committed by Gerrit Code Review

View File

@@ -293,7 +293,7 @@ class HostState(object):
host_numa_topology, _fmt = hardware.host_topology_and_format_from_host(
self)
instance_numa_topology = spec_obj.numa_topology
if host_numa_topology and instance_numa_topology:
spec_obj.numa_topology = hardware.numa_fit_instance_to_host(
host_numa_topology, instance_numa_topology,
limits=self.limits.get('numa_topology'),