Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix idempotency in the rabbitmq_user module #58742

Open
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
2 participants
@daianmartinho
Copy link

commented Jul 5, 2019

Issue: Error when adding user that already exists and permissions dict is passed.

Screenshot from 2019-07-04 23-38-08

SUMMARY

The function _get_permissions is executing list_user_permissions without --no-table-headers.
The return has header included and it is being interpreted as one permission.

Solution:
include --no-table-headers argument

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

rabbitmq_user

Fix idempotency when adding user that already exists and permissions …
…dict is passed.

Issue: Error when adding user that already exists and permissions dict is passed.

The function _get_permissions is executing list_user_permissions without --no-table-headers.
The return has header included and it is being interpreted as one permission.

> /home/infra/.ansible/tmp/ansible-tmp-1562289155.48-192047914720028/debug_dir/__main__.py(180)_get_permissions()
-> for perm in perms_out:
(Pdb) print (perms_out)
['vhost\tconfigure\twrite\tread', '/\t.*\t.*\t.*', 'cerberus\t.*\t.*\t.*']

Solution:
include --no-table-headers argument

+label: bug
@ansibot

This comment has been minimized.

Copy link
Contributor

commented Jul 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.