i != cpu..
This commit is contained in:
parent
c6aeda09e1
commit
2c2aeeb515
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class Inventory():
|
||||||
return manufacturer
|
return manufacturer
|
||||||
|
|
||||||
def create_netbox_cpus(self):
|
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"])
|
manufacturer = self.find_or_create_manufacturer(self, cpu["vendor"])
|
||||||
_ = nb.dcim.inventory_items.create(
|
_ = nb.dcim.inventory_items.create(
|
||||||
device=self.device_id,
|
device=self.device_id,
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue