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

Allow to set attributes #104

Closed
alxgomz opened this issue Apr 8, 2017 · 2 comments
Closed

Allow to set attributes #104

alxgomz opened this issue Apr 8, 2017 · 2 comments
Labels

Comments

@alxgomz
Copy link

alxgomz commented Apr 8, 2017

It seems it is not possible at the moment the set element's attributes as the set_target function check if xpath is a node.
The goal would to set attributes like this:

xml:
    xmlstring: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443"/>
    xpath: /Connector/@port
    value: 8081

That would be very useful i think.
If I missed something jus let me know.

@berenddeschouwer
Copy link

Duplicate of #15

@dagwieers
Copy link
Collaborator

dagwieers commented Aug 9, 2017

The xml module is upstream now (and ships with Ansible v2.4).

Please close this issue, and if needed, open a new issue at: https://github.com/ansible/ansible/issues

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

3 participants