ansible / ansible-modules-extras

Ansible extra modules - these modules ship with ansible
947 stars 1.47k forks source link

ipa_user: fails with 'repsonse user_mod: no modifications to be performed' if sshpubkey is an empty list and user has no public keys in FreeIPA #3682

Closed ankitcharolia closed 7 years ago

ankitcharolia commented 7 years ago
ISSUE TYPE
COMPONENT NAME

modules/identity/ipa/ipa_user.py

ANSIBLE VERSION
ansible 2.3.0 (devel 6e892ed974) last updated 2016/12/07 12:15:51 (GMT +200)
CONFIGURATION

No Changes

OS / ENVIRONMENT

N/A

SUMMARY

If sshpubkey is an empty list, ansible ipa_user module fails with 'repsonse user_mod: no modifications to be performed'

EXPECTED RESULTS

ipa_user module should not be failed in case sshpubkey is an empty list

ACTUAL RESULTS

failed: [X.X.X.X] (item={u'mail': u'xyz.xyz@xyz.com', u'givenname': u'xyz', u'name': u'xyz', u'sn': u'xyz'}) => {"failed": true, "item": {"givenname": "xyz", "mail": "xyz.xyz@xyz.com", "name": "xyz", "sn": "xyz"}, "msg": "repsonse user_mod: no modifications to be performed"}

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.

gundalow commented 7 years ago

Fixed by https://github.com/ansible/ansible/pull/19210