tower_credential module is failing

Hi ,

I am using tower_credential module to create a credential on ansible tower.

Ansible tower version 3.3.0
ansible tower CLI verison 3.3.0

ansible module used - tower_credential

However I am getting the error -

fatal: [XXXXXXXXX.hsbc]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Shared connection to XXXXXXXXX.hsbc closed.\r\n”, “module_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible_4Vbytv/ansible_module_tower_credential.py", line 292, in \r\n main()\r\n File "/tmp/ansible_4Vbytv/ansible_module_tower_credential.py", line 277, in main\r\n result = credential.modify(**params)\r\n File "/opt/ansible/20171031/python/lib/python2.7/site-packages/tower_cli/models/base.py", line 698, in modify\r\n return self.write(pk, create_on_missing=create_on_missing, force_on_exists=True, **kwargs)\r\n File "/opt/ansible/20171031/python/lib/python2.7/site-packages/tower_cli/models/base.py", line 378, in write\r\n raise exc.BadRequest(‘Missing required fields: %s’ % ‘, ‘.join(missing_fields).replace(’_’, ‘-’))\r\ntower_cli.exceptions.BadRequest: Missing required fields: credential-type\r\n”, “msg”: “MODULE FAILURE”, “rc”: 0}

Can anyone please help here.
Red hat has clearly denied to support saying that this is community support and raise it there.

Thanks,
Vinod

Did you notice it says, tower_cli.exceptions.BadRequest: Missing required fields: credential-type

Have you selected the credentials type?

Yes i have used the “kind” option. Verified that i am using all required options of tower_credential

as far as I know that module does not work with versions newer than 3.1