# "msg": "Unsupported parameters for (basic.py)

**URL:** <https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140>\
**Category:** Ansible Developer\
**Tags:** ansible-devel\
**Created:** [February 5, 2020, 7:02am UTC](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140 "2020-02-05T07:02:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tejas\_Gadaria1](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@Tejas\_Gadaria1](https://forum.ansible.com/u/Tejas_Gadaria1)\
**Post date:** [February 5, 2020, 7:02am UTC](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140/1 "2020-02-05T07:02:04Z")

</div>

Hi Team,

I have written ansible custom module. Module suppose to fetch data from database via graphsql template.

Module execution fails with **“Unsupported parameters for (basic.py)”.**  
Ansible is imported as **“from ansible.module\_utils.basic import AnsibleModule”**

{  
“failed”: true,  
“invocation”: {  
“module\_args”: {  
“attr\_name”: “vpxa”,  
“attr\_value”: true,  
“infradb\_graphql\_data\_owner”: “xxxx”,  
“infradb\_graphql\_hostname”: “xxxxx”,  
“infradb\_graphql\_password”: “xxxx”,  
“infradb\_graphql\_username”: “xxxx”,  
“query\_operator”: “\_eq”,  
“xpath”: “/APAC”  
}  
},  
“msg”: “Unsupported parameters for (basic.py) module: infradb\_graphql\_data\_owner, infradb\_graphql\_hostname, infradb\_graphql\_password, infradb\_graphql\_username Supported parameters include: attr\_name, attr\_value, data\_owner, hostname, password, query\_operator, username, xpath”  
}

Need your help here.

Note: For now I am providing argument via json file.  
Ansible Version : 2.10.0.dev0

Thanks,  
Tejas

---

<div class="post-metadata">

**Author:** ![Marek\_Slebodnik](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Marek\_Slebodnik](https://forum.ansible.com/u/Marek_Slebodnik)\
**Post date:** [February 5, 2020, 8:41am UTC](https://forum.ansible.com/t/msg-unsupported-parameters-for-basic-py/32140/2 "2020-02-05T08:41:25Z")

</div>

Supporeted parameters: “data\_owner, hostname, password, query\_operator, username, xpath”, you have in module args you have “infra\_graphql\_data\_owner infra\_…”.  
So either update module args in you json, or spec attribute in **AnsibleModule** instance.

MS.

st 5. 2. 2020 o 8:02 Tejas Gadaria \<[refond.gmrt@gmail.com](mailto:refond.gmrt@gmail.com)\> napísal(a):
