{"action":"opened","number":3818,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3818","id":72200390,"html_url":"https://github.com/ansible/ansible-modules-core/pull/3818","diff_url":"https://github.com/ansible/ansible-modules-core/pull/3818.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/3818.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3818","number":3818,"state":"open","locked":false,"title":"Fix cursor.execute requiring an iterable","user":{"login":"jnerin","id":2012580,"avatar_url":"https://avatars.githubusercontent.com/u/2012580?v=3","gravatar_id":"","url":"https://api.github.com/users/jnerin","html_url":"https://github.com/jnerin","followers_url":"https://api.github.com/users/jnerin/followers","following_url":"https://api.github.com/users/jnerin/following{/other_user}","gists_url":"https://api.github.com/users/jnerin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnerin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnerin/subscriptions","organizations_url":"https://api.github.com/users/jnerin/orgs","repos_url":"https://api.github.com/users/jnerin/repos","events_url":"https://api.github.com/users/jnerin/events{/privacy}","received_events_url":"https://api.github.com/users/jnerin/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n - Bugfix Pull Request\r\n\r\n##### COMPONENT NAME\r\nansible_module_mysql_user\r\n\r\n##### ANSIBLE VERSION\r\nansible 2.1.0.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n\r\n##### SUMMARY\r\nThis fixes the error I got when using host_all:\r\n\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_7Rvlhp/ansible_module_mysql_user.py\", line 582, in <module>\r\n    main()\r\n  File \"/tmp/ansible_7Rvlhp/ansible_module_mysql_user.py\", line 571, in main\r\n    if user_exists(cursor, user, host, host_all):\r\n  File \"/tmp/ansible_7Rvlhp/ansible_module_mysql_user.py\", line 216, in user_exists\r\n    cursor.execute(\"SELECT count(*) FROM user WHERE user = %s\", user)\r\n  File \"/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py\", line 198, in execute\r\n    query = query % args\r\nTypeError: not all arguments converted during string formatting","created_at":"2016-06-01T15:20:55Z","updated_at":"2016-06-01T15:20:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3818/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3818/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3818/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/ac4b4fce69abcc41d5dcc58a1ef2c46d2c00e2f6","head":{"label":"jnerin:patch-1","ref":"patch-1","sha":"ac4b4fce69abcc41d5dcc58a1ef2c46d2c00e2f6","user":{"login":"jnerin","id":2012580,"avatar_url":"https://avatars.githubusercontent.com/u/2012580?v=3","gravatar_id":"","url":"https://api.github.com/users/jnerin","html_url":"https://github.com/jnerin","followers_url":"https://api.github.com/users/jnerin/followers","following_url":"https://api.github.com/users/jnerin/following{/other_user}","gists_url":"https://api.github.com/users/jnerin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnerin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnerin/subscriptions","organizations_url":"https://api.github.com/users/jnerin/orgs","repos_url":"https://api.github.com/users/jnerin/repos","events_url":"https://api.github.com/users/jnerin/events{/privacy}","received_events_url":"https://api.github.com/users/jnerin/received_events","type":"User","site_admin":false},"repo":{"id":60182525,"name":"ansible-modules-core","full_name":"jnerin/ansible-modules-core","owner":{"login":"jnerin","id":2012580,"avatar_url":"https://avatars.githubusercontent.com/u/2012580?v=3","gravatar_id":"","url":"https://api.github.com/users/jnerin","html_url":"https://github.com/jnerin","followers_url":"https://api.github.com/users/jnerin/followers","following_url":"https://api.github.com/users/jnerin/following{/other_user}","gists_url":"https://api.github.com/users/jnerin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnerin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnerin/subscriptions","organizations_url":"https://api.github.com/users/jnerin/orgs","repos_url":"https://api.github.com/users/jnerin/repos","events_url":"https://api.github.com/users/jnerin/events{/privacy}","received_events_url":"https://api.github.com/users/jnerin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jnerin/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/jnerin/ansible-modules-core","forks_url":"https://api.github.com/repos/jnerin/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/jnerin/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jnerin/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jnerin/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/jnerin/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/jnerin/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/jnerin/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/jnerin/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/jnerin/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/jnerin/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/jnerin/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jnerin/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jnerin/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/jnerin/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jnerin/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/jnerin/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/jnerin/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/jnerin/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/jnerin/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/jnerin/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/jnerin/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/jnerin/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/jnerin/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/jnerin/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/jnerin/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/jnerin/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jnerin/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/jnerin/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jnerin/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/jnerin/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/jnerin/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/jnerin/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/jnerin/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jnerin/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/jnerin/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/jnerin/ansible-modules-core/deployments","created_at":"2016-06-01T14:09:26Z","updated_at":"2016-06-01T14:09:29Z","pushed_at":"2016-06-01T14:19:46Z","git_url":"git://github.com/jnerin/ansible-modules-core.git","ssh_url":"git@github.com:jnerin/ansible-modules-core.git","clone_url":"https://github.com/jnerin/ansible-modules-core.git","svn_url":"https://github.com/jnerin/ansible-modules-core","homepage":"","size":8644,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"d3a9a90d2d5d26c37bce8814b44e083b5ae51e07","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":24474126,"name":"ansible-modules-core","full_name":"ansible/ansible-modules-core","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible-modules-core","description":"Ansible modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-core","forks_url":"https://api.github.com/repos/ansible/ansible-modules-core/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-core/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-core/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-core/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-core/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-core/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-core/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-core/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-core/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-core/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-core/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-core/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-core/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-core/deployments","created_at":"2014-09-25T20:28:25Z","updated_at":"2016-06-01T08:21:31Z","pushed_at":"2016-06-01T14:35:38Z","git_url":"git://github.com/ansible/ansible-modules-core.git","ssh_url":"git@github.com:ansible/ansible-modules-core.git","clone_url":"https://github.com/ansible/ansible-modules-core.git","svn_url":"https://github.com/ansible/ansible-modules-core","homepage":"","size":15920,"stargazers_count":706,"watchers_count":706,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1595,"mirror_url":null,"open_issues_count":1057,"forks":1595,"open_issues":1057,"watchers":706,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3818"},"html":{"href":"https://github.com/ansible/ansible-modules-core/pull/3818"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3818"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/issues/3818/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3818/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/3818/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-core/statuses/ac4b4fce69abcc41d5dcc58a1ef2c46d2c00e2f6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"jnerin"}}