fix: grab table columns more accurately (#10295)

This commit is contained in:
Mya 2021-12-20 12:49:03 -07:00 committed by GitHub
parent 973ffba9fb
commit 49562e8963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ func GetIndex(oidNum string, mibPrefix string) (col []string, tagOids map[string
// grabs all columns from the table
// mimmicks grabbing everything returned from snmptable -Ch -Cl -c public 127.0.0.1 oidFullName
col = node.GetRow().AsTable().ColumnOrder
_, col = node.GetColumns()
return col, tagOids, nil
}