While running the code in my local environment, the code is executing fine and printing result until few lines but beyond that it is failing with below error.
File "/mnt/c/ansible-dynamic-inventory-chef/py/ChefInventory/init.py", line 92, in get_data
n["automatic"]["ipaddress"],
KeyError: 'ipaddress'