# Dynamic Inventory help

**URL:** <https://forum.ansible.com/t/dynamic-inventory-help/23224>\
**Category:** Ansible Project\
**Created:** [December 11, 2016, 3:32am UTC](https://forum.ansible.com/t/dynamic-inventory-help/23224 "2016-12-11T03:32:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivaram\_Kannan](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Sivaram\_Kannan](https://forum.ansible.com/u/Sivaram_Kannan)\
**Post date:** [December 11, 2016, 3:32am UTC](https://forum.ansible.com/t/dynamic-inventory-help/23224/1 "2016-12-11T03:32:53Z")

</div>

Hi,

I am trying to modify the fleet dynamic inventory. I have modified the fleet.py in github to generate a json like this

{  
“all”: {  
“nodetype1”: {  
“hosts”: [“10.209.6.1”, “10.203.6.1”, “10.201.6.1”]  
}  
}  
}

When I run this fleet.py with the ansible I get this error

ERROR! Attempted to execute “fleet.py” as inventory script: Inventory script (fleet.py) had an execution error:

May I know what is wrong with the above json?? I could not understand what is the wrong with the json by reading the documentation. Can someone help please?

Thanks,  
./Siva
