{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1656","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1656/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1656/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1656/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1656","id":133200211,"number":1656,"title":"fix trying to iterate None when creating a user","user":{"login":"flaviogrossi","id":879129,"avatar_url":"https://avatars.githubusercontent.com/u/879129?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviogrossi","html_url":"https://github.com/flaviogrossi","followers_url":"https://api.github.com/users/flaviogrossi/followers","following_url":"https://api.github.com/users/flaviogrossi/following{/other_user}","gists_url":"https://api.github.com/users/flaviogrossi/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviogrossi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviogrossi/subscriptions","organizations_url":"https://api.github.com/users/flaviogrossi/orgs","repos_url":"https://api.github.com/users/flaviogrossi/repos","events_url":"https://api.github.com/users/flaviogrossi/events{/privacy}","received_events_url":"https://api.github.com/users/flaviogrossi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bugfix_pull_request","name":"bugfix_pull_request","color":"ded270"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/needs_revision","name":"needs_revision","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-12T10:05:14Z","updated_at":"2016-05-04T22:27:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1656","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1656","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1656.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1656.patch"},"body":"##### Issue Type:\r\n\r\n Bugfix Pull Request\r\n\r\n##### Ansible Version:\r\n\r\nansible 2.1.0 (devel cf251258a8) last updated 2016/02/11 14:40:12 (GMT +200)\r\n\r\n##### Ansible Configuration:\r\n\r\nDefault configuration\r\n\r\n##### Environment:\r\n\r\nFedora 23\r\n\r\n##### Summary:\r\n\r\nException creating a rabbitmq user by using the rabbitmq_user module. After this fix, another exception will be raised, addressed in #1657\r\n\r\n##### Steps To Reproduce:\r\n\r\nUsing the following playbook\r\n```\r\n- hosts: test\r\n  tasks:\r\n    - name: remove user\r\n      rabbitmq_user: user=aaa password=9TWB18eJqmuRRbszSqHh node=rabbit@orchestra6 vhost=/ydin configure_priv=.* read_priv=.* write_priv=.* state=absent\r\n\r\n    - name: add user\r\n      rabbitmq_user: user=aaa password=9TWB18eJqmuRRbszSqHh node=rabbit@orchestra6 vhost=/ydin configure_priv=.* read_priv=.* write_priv=.* state=present\r\n```\r\n\r\n##### Expected Results:\r\n\r\nNo exceptions\r\n\r\n##### Actual Results:\r\n\r\nthe following exception is raised:\r\n```\r\n     for permission in self._permissions:\r\nTypeError: 'NoneType' object is not iterable\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/217022636","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1656#issuecomment-217022636","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1656","id":217022636,"user":{"login":"gregdek","id":252125,"avatar_url":"https://avatars.githubusercontent.com/u/252125?v=3","gravatar_id":"","url":"https://api.github.com/users/gregdek","html_url":"https://github.com/gregdek","followers_url":"https://api.github.com/users/gregdek/followers","following_url":"https://api.github.com/users/gregdek/following{/other_user}","gists_url":"https://api.github.com/users/gregdek/gists{/gist_id}","starred_url":"https://api.github.com/users/gregdek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregdek/subscriptions","organizations_url":"https://api.github.com/users/gregdek/orgs","repos_url":"https://api.github.com/users/gregdek/repos","events_url":"https://api.github.com/users/gregdek/events{/privacy}","received_events_url":"https://api.github.com/users/gregdek/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T22:27:28Z","updated_at":"2016-05-04T22:27:28Z","body":"Thanks @flaviogrossi for this PR. This PR requires revisions, either because it fails to build or by reviewer request. Please make the suggested revisions. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review.\n\n[This message brought to you by your friendly Ansibull-bot.]"}}