{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1152","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1152/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1152/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1152","id":69114703,"number":1152,"title":"[Bug Report] lineinfile unquotes value twice","user":{"login":"StanAngeloff","id":93127,"avatar_url":"https://avatars.githubusercontent.com/u/93127?v=3","gravatar_id":"","url":"https://api.github.com/users/StanAngeloff","html_url":"https://github.com/StanAngeloff","followers_url":"https://api.github.com/users/StanAngeloff/followers","following_url":"https://api.github.com/users/StanAngeloff/following{/other_user}","gists_url":"https://api.github.com/users/StanAngeloff/gists{/gist_id}","starred_url":"https://api.github.com/users/StanAngeloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StanAngeloff/subscriptions","organizations_url":"https://api.github.com/users/StanAngeloff/orgs","repos_url":"https://api.github.com/users/StanAngeloff/repos","events_url":"https://api.github.com/users/StanAngeloff/events{/privacy}","received_events_url":"https://api.github.com/users/StanAngeloff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.0","name":"affects_2.0","color":"5319e7"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-04-17T10:43:18Z","updated_at":"2016-10-06T16:02:48Z","closed_at":null,"body":"**Summary:**\r\n\r\nThe `lineinfile` module seems to incorrectly unquote values more than once. Example attached below:\r\n\r\n**Steps To Reproduce:**\r\n\r\n```\r\n$ git clone https://github.com/ansible/ansible.git --recursive\r\n$ source ansible/hacking/env-setup\r\n$ chmod +x ansible/hacking/test-module\r\n\r\n$ echo > /tmp/lineinfile && \\\r\nansible/hacking/test-module -m ansible/lib/ansible/modules/core/files/lineinfile.py \\\r\n  -a 'state=present dest=/tmp/lineinfile line=\"\\\"Hello World\\\"\"' 1>/dev/null && \\\r\ncat /tmp/lineinfile\r\n```\r\n\r\n**Expected Results:**\r\n\r\nOne line at the end of the file `\"Hello World\"` surrounded in double quotes.\r\n\r\n**Actual Results:**\r\n\r\nThe file has one line at the end `Hello World` with no quotes.\r\n\r\nBisecting pinpoints ansible/ansible-modules-core@ab5e8201f487023dc6f02a43ae522d76300f8e86 as the culprit.\r\n\r\n**Ansible Version:**\r\n\r\nGit commit ansible/ansible@fa1eff83562153b07aea905633225dbe3a0daafd and ansible/ansible-modules-core@a19fa6ba48bf092b574eb6ee40f38f06500d767d.\r\n\r\n**Environment:**\r\n\r\nClean Vagrant VM using `ubuntu/trusty64` and the below:\r\n\r\n```\r\n$ uname -a\r\nLinux icanhazvm 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\n$ sudo apt-get install git-core python-setuptools\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/252008499","html_url":"https://github.com/ansible/ansible-modules-core/issues/1152#issuecomment-252008499","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1152","id":252008499,"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-10-06T16:02:47Z","updated_at":"2016-10-06T16:02:47Z","body":"@ansible, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}