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

Have you selected the credentials type?

On Thu, Nov 1, 2018, 12:28 PM Vinod Patil <[email protected]> wrote:

> 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
> <module>\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
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/0f1b088d-295c-459c-a69a-096a1837abb9%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/0f1b088d-295c-459c-a69a-096a1837abb9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACecUhvHUti-%3DEM6caS2PF0OjM2H1AaHOHg28Z2CG_8PrWUM2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to