claims: Remove useless caching

Nothing was ever setting the '_numa_topology_loaded' attribute which
means this caching has never worked. Just drop the idea entirely.

Change-Id: I67c1d96f5b7c7c2c171869fbd54392d118b735af
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2019-07-05 12:22:35 +01:00
parent e392b0d1b2
commit 2d4a2c6882
1 changed files with 1 additions and 6 deletions

View File

@ -63,7 +63,6 @@ class Claim(NopClaim):
# Stash a copy of the instance at the current point of time
self.instance = instance.obj_clone()
self.nodename = nodename
self._numa_topology_loaded = False
self.tracker = tracker
self._pci_requests = pci_requests
self.context = context
@ -74,11 +73,7 @@ class Claim(NopClaim):
@property
def numa_topology(self):
if self._numa_topology_loaded:
return self._numa_topology
else:
self._numa_topology = self.instance.numa_topology
return self._numa_topology
return self.instance.numa_topology
def abort(self):
"""Compute operation requiring claimed resources has failed or