# customvalue empty with vmware dynamic inventory

**URL:** <https://forum.ansible.com/t/customvalue-empty-with-vmware-dynamic-inventory/27766>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [June 11, 2018, 11:29am UTC](https://forum.ansible.com/t/customvalue-empty-with-vmware-dynamic-inventory/27766 "2018-06-11T11:29:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Mutel](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@Samuel\_Mutel](https://forum.ansible.com/u/Samuel_Mutel)\
**Post date:** [June 11, 2018, 11:29am UTC](https://forum.ansible.com/t/customvalue-empty-with-vmware-dynamic-inventory/27766/1 "2018-06-11T11:29:10Z")

</div>

Hello,

I would like to setup a vmware dynamic inventory with vmware\_inventory.py (available here [https://github.com/ansible/ansible/tree/stable-2.6/contrib/inventory](https://github.com/ansible/ansible/tree/stable-2.6/contrib/inventory)).  
When I execute the script, the “customvalue” field is empty. So I am not able to create groups based on custom attributes.

Do you know the reason of that ?

Regards.  
Samuel Mutel.

---

<div class="post-metadata">

**Author:** ![countryroad62](https://avatars.discourse-cdn.com/v4/letter/c/e8c25b/32.png) [@countryroad62](https://forum.ansible.com/u/countryroad62)\
**Post date:** [July 31, 2018, 10:28pm UTC](https://forum.ansible.com/t/customvalue-empty-with-vmware-dynamic-inventory/27766/2 "2018-07-31T22:28:28Z")

</div>

You need to have a valid vmware\_inventory.ini in the same directory with your .py script. You can test it like this:

./vmware\_inventory.py --refresh-cache --list
