nautobot / nornir-nautobot

Nornir inventory and plugins for Nautobot.
https://docs.nautobot.com/projects/nornir-nautobot/en/latest/
30 stars 24 forks source link

Add toggle option for Dictionary Unpacking #4

Open jvanderaa opened 3 years ago

jvanderaa commented 3 years ago

Add flag to unpack the pynautobot object into a dictionary. Should default to True to unpack.

pke11y commented 3 years ago

@jvanderaa Is this toggle option on the inventory object? What is the objective?

jvanderaa commented 3 years ago

The objective is that there is currently a pynautobot_dictionary key in the inventory data key by default. This is a "nice to have" at this time that many will probably not want to have in the inventory. The thought is to make a toggle of pynautobot_dictonary_unpack or some other name (since that is long), that would not add the dictionary version to the data returned.