Removes HD detection

This commit is contained in:
Pierre Lannoy 2024-02-03 14:22:34 +01:00
commit 94a08e3e8f
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31
2 changed files with 2 additions and 6 deletions

View file

@ -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)

View file

@ -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)