ansible/lib/ansible
Joel Diaz 79d034b088 update miq compare_user group comparison (#29063)
When calling manageiq_user to an already existing user (but leaving out the password so that it doesn't automatically 're-create' the user), the module fails with:

fatal: [127.0.0.1]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to 127.0.0.1 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_Fr7Nt3/ansible_module_manageiq_user.py\", line 324, in <module>\r\n    main()\r\n  File \"/tmp/ansible_Fr7Nt3/ansible_module_manageiq_user.py\", line 315, in main\r\n    res_args = manageiq_user.edit_user(user, name, group, password, email)\r\n  File \"/tmp/ansible_Fr7Nt3/ansible_module_manageiq_user.py\", line 229, in edit_user\r\n    if self.compare_user(user, name, group_id, password, email):\r\n  File \"/tmp/ansible_Fr7Nt3/ansible_module_manageiq_user.py\", line 189, in compare_user\r\n    (group_id and user['group']['id'] != group_id)\r\nKeyError: 'group'\r\n", "msg": "MODULE FAILURE", "rc": 0}

The 'group' field turns out to be 'current_group_id' (at least with ManageIQ 4.6). Update the comparison accordingly.
2017-09-19 09:10:21 -04:00
..
cli deprecated include 2017-09-15 13:20:32 -07:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Enable more pylint rules and fix reported issues. (#30539) 2017-09-18 23:20:32 -07:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor Enable more pylint rules and fix reported issues. (#30539) 2017-09-18 23:20:32 -07:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory Remove redundant check for group membership in add_host (#30530) 2017-09-18 20:22:30 -04:00
module_utils Enable more pylint rules and fix reported issues. (#30539) 2017-09-18 23:20:32 -07:00
modules update miq compare_user group comparison (#29063) 2017-09-19 09:10:21 -04:00
parsing Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
playbook decelerate! (#30160) 2017-09-16 23:35:50 -04:00
plugins Enable more pylint rules and fix reported issues. (#30539) 2017-09-18 23:20:32 -07:00
template Fix dangerous default args. (#29839) 2017-09-12 00:11:13 -07:00
utils expose soem options as vars (#30379) 2017-09-17 12:25:56 -04:00
vars remove fact namespacing 2017-09-10 17:37:52 -04:00
__init__.py
constants.py fixed 'typing' for deprecated get_config 2017-09-14 13:20:55 -07:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00