LSHW.interfaces["name"] is a list instead of string #227
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#227
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
i["name"] is a list of 2 strings, instead of being a string.
When running the lshw command, I see that on one section there are two consecutive "logical name: {name}" lines. Like so:
Also, could it be an issue with the lshw version?
I am using Ubuntu 20.04 lshw 2.18.85-0.3
Expected behavior
Ignore the second logical name and use only the first logical name in the i["name"] value.
Or
Ignore the second logical name from the lshw output so that i["name"] .
Note:
I'm not too familiar with Netbox and netbox-agent so these are just some suggestions to the issues I've run into.
Ubuntu Main amd64 Official
lshw_02.18.85-0.3ubuntu2_amd64.deb
I am encountering the same issue.
This should be handled by netbox-agent. I will submit a fix for this problem.