Simple way to print the current inventory

Is there a simple way to print/dump the inventory, similar to how InventoryElement.schema() displays the schema?

RTFM :smiley:

nr.inventory.get_inventory_dict()

ref. https://nornir.readthedocs.io/en/stable/ref/api/inventory.html#nornir.core.inventory.Inventory.get_inventory_dict

2 Likes