i != cpu..

This commit is contained in:
Thomas Davis 2019-08-29 13:15:03 -07:00
commit 2c2aeeb515

View file

@ -77,7 +77,7 @@ class Inventory():
return manufacturer
def create_netbox_cpus(self):
for i in self.lshw.get_hw_linux('cpu'):
for cpu in self.lshw.get_hw_linux('cpu'):
manufacturer = self.find_or_create_manufacturer(self, cpu["vendor"])
_ = nb.dcim.inventory_items.create(
device=self.device_id,