I'm using pynet to pull all active devices...
nb_conn.dcim.devices.filter(status=1)
...and then I loop through the device pulling out some info.
I was pulling the manufacturer with this...
dev['make'] = x._full_cache[14][1]['manufacturer']['name']
That worked on NetBox 2.2.4 (?) but on 2.2.8 it seems that the order of the list in _full_cache is random so sometimes 14 is correct but sometimes it's 1 and sometimes it's 8, etc.
What is the correct way that I should be pulling the manufacturer?
Thank you