Removes HD detection
This commit is contained in:
parent
9e992e93a7
commit
94a08e3e8f
2 changed files with 2 additions and 6 deletions
|
|
@ -36,10 +36,6 @@ def run(config):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
server = GenericHost(dmi=dmi)
|
server = GenericHost(dmi=dmi)
|
||||||
|
|
||||||
if version.parse(nb.version) < version.parse('2.9'):
|
|
||||||
print('netbox-agent is not compatible with Netbox prior to verison 2.9')
|
|
||||||
return False
|
|
||||||
|
|
||||||
if config.register or config.update_all or config.update_network or \
|
if config.register or config.update_all or config.update_network or \
|
||||||
config.update_location or config.update_inventory or config.update_psu:
|
config.update_location or config.update_inventory or config.update_psu:
|
||||||
server.netbox_create_or_update(config)
|
server.netbox_create_or_update(config)
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ class LSHW():
|
||||||
if j["class"] == "generic":
|
if j["class"] == "generic":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if j["class"] == "storage":
|
#if j["class"] == "storage":
|
||||||
self.find_storage(j)
|
# self.find_storage(j)
|
||||||
|
|
||||||
if j["class"] == "memory":
|
if j["class"] == "memory":
|
||||||
self.find_memories(j)
|
self.find_memories(j)
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue