{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4997","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4997/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4997/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4997/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4997","id":179060846,"number":4997,"title":"ini_file module doesn't match existing key when it is indented","user":{"login":"agaffney","id":825875,"avatar_url":"https://avatars.githubusercontent.com/u/825875?v=3","gravatar_id":"","url":"https://api.github.com/users/agaffney","html_url":"https://github.com/agaffney","followers_url":"https://api.github.com/users/agaffney/followers","following_url":"https://api.github.com/users/agaffney/following{/other_user}","gists_url":"https://api.github.com/users/agaffney/gists{/gist_id}","starred_url":"https://api.github.com/users/agaffney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agaffney/subscriptions","organizations_url":"https://api.github.com/users/agaffney/orgs","repos_url":"https://api.github.com/users/agaffney/repos","events_url":"https://api.github.com/users/agaffney/events{/privacy}","received_events_url":"https://api.github.com/users/agaffney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-25T00:54:00Z","updated_at":"2016-09-25T01:21:56Z","closed_at":null,"body":"\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n`ini_file` module\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.1.0\r\n```\r\n\r\n##### CONFIGURATION\r\nN/A\r\n\r\n##### OS / ENVIRONMENT\r\nN/A\r\n\r\n##### SUMMARY\r\nWhen a key in an INI file exists but is prefixed with whitespace, the `ini_file` module adds a new entry rather than updating the existing entry.\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\nPlaybook:\r\n```\r\n- hosts: localhost\r\n  gather_facts: no\r\n  tasks:\r\n    - ini_file:\r\n        dest: ./foo.ini\r\n        section: main\r\n        option: foo\r\n        value: baz\r\n```\r\n\r\nINI file:\r\n```\r\n[main]\r\n  foo = bar\r\n```\r\n\r\n##### EXPECTED RESULTS\r\n```\r\n[main]\r\n  foo = baz\r\n```\r\n\r\n##### ACTUAL RESULTS\r\n\r\n```\r\n[main]\r\n  foo = bar\r\nfoo = baz\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/249396900","html_url":"https://github.com/ansible/ansible-modules-core/issues/4997#issuecomment-249396900","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4997","id":249396900,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T01:21:56Z","updated_at":"2016-09-25T01:21:56Z","body":"@jpmens, @noseka1, ping. This issue is waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_notify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}