{"action":"created","issue":{"url":"https://api.github.com/repos/RHInception/ansible-xml/issues/12","labels_url":"https://api.github.com/repos/RHInception/ansible-xml/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/RHInception/ansible-xml/issues/12/comments","events_url":"https://api.github.com/repos/RHInception/ansible-xml/issues/12/events","html_url":"https://github.com/RHInception/ansible-xml/issues/12","id":71778571,"number":12,"title":"returns \"changed\" when no change made","user":{"login":"Lx","id":160164,"avatar_url":"https://avatars.githubusercontent.com/u/160164?v=3","gravatar_id":"","url":"https://api.github.com/users/Lx","html_url":"https://github.com/Lx","followers_url":"https://api.github.com/users/Lx/followers","following_url":"https://api.github.com/users/Lx/following{/other_user}","gists_url":"https://api.github.com/users/Lx/gists{/gist_id}","starred_url":"https://api.github.com/users/Lx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lx/subscriptions","organizations_url":"https://api.github.com/users/Lx/orgs","repos_url":"https://api.github.com/users/Lx/repos","events_url":"https://api.github.com/users/Lx/events{/privacy}","received_events_url":"https://api.github.com/users/Lx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-29T04:58:58Z","updated_at":"2015-05-04T03:45:49Z","closed_at":null,"body":"Given XML in `file.xml`:\r\n\r\n```\r\n<a>\r\n  <b>\r\n    <c>D</c>\r\n  </b>\r\n</a>\r\n```\r\n\r\nthe following Ansible task:\r\n\r\n```\r\n- name: ensure D\r\n    xml: file=file.xml xpath=/a/b/c value=D\r\n    notify: restart the thing\r\n```\r\n\r\nalways returns as `changed`, even when no change was made, resulting in handlers being triggered when not necessary."},"comment":{"url":"https://api.github.com/repos/RHInception/ansible-xml/issues/comments/98582493","html_url":"https://github.com/RHInception/ansible-xml/issues/12#issuecomment-98582493","issue_url":"https://api.github.com/repos/RHInception/ansible-xml/issues/12","id":98582493,"user":{"login":"tbielawa","id":33121,"avatar_url":"https://avatars.githubusercontent.com/u/33121?v=3","gravatar_id":"","url":"https://api.github.com/users/tbielawa","html_url":"https://github.com/tbielawa","followers_url":"https://api.github.com/users/tbielawa/followers","following_url":"https://api.github.com/users/tbielawa/following{/other_user}","gists_url":"https://api.github.com/users/tbielawa/gists{/gist_id}","starred_url":"https://api.github.com/users/tbielawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbielawa/subscriptions","organizations_url":"https://api.github.com/users/tbielawa/orgs","repos_url":"https://api.github.com/users/tbielawa/repos","events_url":"https://api.github.com/users/tbielawa/events{/privacy}","received_events_url":"https://api.github.com/users/tbielawa/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T03:45:49Z","updated_at":"2015-05-04T03:45:49Z","body":"Oh hi folks. We're looking pass this on. If someone wanted to own the task of fixing up the module and taking ownership going forward that'd be great. Bonus points if you can work it into the ansible-modules-extra proper repo. I'll come back tomorrow and write up a more formal idea of what I'm talking about!\r\n\r\nThanks @Lx and @cmprescott for getting my attention on this."}}