Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

returns "changed" when no change made #12

Closed
Lx opened this issue Apr 29, 2015 · 7 comments
Closed

returns "changed" when no change made #12

Lx opened this issue Apr 29, 2015 · 7 comments
Labels

Comments

@Lx
Copy link

Lx commented Apr 29, 2015

Given XML in file.xml:

<a>
  <b>
    <c>D</c>
  </b>
</a>

the following Ansible task:

- name: ensure D
    xml: file=file.xml xpath=/a/b/c value=D
    notify: restart the thing

always returns as changed, even when no change was made, resulting in handlers being triggered when not necessary.

@cmprescott
Copy link
Owner

+1 I noticed this too. I was going to put together a PR, but didn't seem worth it until interest in repo picks up again.

PS @Lx --- I read something on SO about how to get the eye of dead github repo's. However, I think that was back when you could message people on github. But anyways if anyone with write access is reading this. I would be happy to take over this repo.

@Lx
Copy link
Author

Lx commented May 3, 2015

@tbielawa and @relaxnow (the two main contributors to this repository) have both pushed commits to other GitHub projects in the past week, so they may be able to give you an answer on whether or not transfer of ownership would be permissible.

Even if not, I'd be happy to run off any fork that addresses the issues I've raised here (#12, #13, #14, #15).

@tbielawa
Copy link
Collaborator

tbielawa commented May 4, 2015

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!

Thanks @Lx and @cmprescott for getting my attention on this.

@tbielawa
Copy link
Collaborator

tbielawa commented May 4, 2015

@Lx @cmprescott please take a minute to review #16 (ansible-xml needs new care takers) if you can

:)

@cmprescott
Copy link
Owner

@Lx Do you mind testing https://github.com/cmprescott/ansible-xml/tree/feature/%2312_Idempotent to see if it fixes this issue in your use case? It fixed mine, but I would like a second set of eyes on it.

@Lx
Copy link
Author

Lx commented May 20, 2015

Works well for me on my setup. Thanks!

@cmprescott
Copy link
Owner

Awesome. I'm going to create a PR and merge in today.

cmprescott added a commit that referenced this issue May 26, 2015
Fix Issue #12 not idempotent. Always returned changed.
@dagwieers dagwieers added the bug label Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants