{"action":"opened","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/database/issues/155","labels_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/155/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/155/events","html_url":"https://github.com/opscode-cookbooks/database/issues/155","id":74928203,"number":155,"title":"mysql_database_user's action grant is not idempotent","user":{"login":"kostyrevaa","id":6671653,"avatar_url":"https://avatars.githubusercontent.com/u/6671653?v=3","gravatar_id":"","url":"https://api.github.com/users/kostyrevaa","html_url":"https://github.com/kostyrevaa","followers_url":"https://api.github.com/users/kostyrevaa/followers","following_url":"https://api.github.com/users/kostyrevaa/following{/other_user}","gists_url":"https://api.github.com/users/kostyrevaa/gists{/gist_id}","starred_url":"https://api.github.com/users/kostyrevaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostyrevaa/subscriptions","organizations_url":"https://api.github.com/users/kostyrevaa/orgs","repos_url":"https://api.github.com/users/kostyrevaa/repos","events_url":"https://api.github.com/users/kostyrevaa/events{/privacy}","received_events_url":"https://api.github.com/users/kostyrevaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-10T14:17:59Z","updated_at":"2015-05-10T14:17:59Z","closed_at":null,"body":"```\r\nmysql_database_user 'db_admin2' do\r\n  connection(\r\n    :host => '127.0.0.1',\r\n    :username => 'root',\r\n    :password => 'learnchef_mysql'\r\n  )\r\n  password 'database_password2'\r\n  database_name 'products'\r\n  host '127.0.0.1'\r\n  action [:create, :grant]\r\nend\r\n```\r\nalways change 1 resource\r\n```\r\n   * mysql_database_user[db_admin2] action grant\r\n      - Granting privs for 'db_admin2'@'127.0.0.1'\r\nChef Client finished, 1/116 resources updated in 5.187874261 seconds\r\n```"}}