- 
                Notifications
    You must be signed in to change notification settings 
- Fork 63
Closed
ansible/ansible
#25323Labels
Description
When running the integration tests from this project on the Ansible CI framwork on CentOS-6 (with native lxml v2.2.3) we get the following error:
Couldn't delete xpath target: /business/rating/@subjective ('_ElementStringResult' object has no attribute 'attrname')
Here is the detailed output:
TASK [xml : Remove '/business/rating/@subjective'] *****************************
task path: /root/ansible/test/integration/targets/xml/tasks/test-remove-attribute.yml:7
Using module file /root/ansible/lib/ansible/modules/files/xml.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744 `" && echo ansible-tmp-1496840875.06-126128364675744="` echo /root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744 `" ) && sleep 0'
<127.0.0.1> PUT /tmp/tmpYpbF4J TO /root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744/xml.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744/ /root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744/xml.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/tmp/ansible-test-coverage-2aVbEu/coverage/injector.py /root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744/xml.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1496840875.06-126128364675744/" > /dev/null 2>&1 && sleep 0'
fatal: [testhost]: FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "add_children": null, 
            "attribute": null, 
            "content": null, 
            "count": false, 
            "ensure": "absent", 
            "input_type": "yaml", 
            "namespaces": {}, 
            "path": "/tmp/ansible-xml-beers.xml", 
            "pretty_print": false, 
            "print_match": false, 
            "set_children": null, 
            "state": "absent", 
            "value": null, 
            "xmlstring": "", 
            "xpath": "/business/rating/@subjective"
        }
    }, 
    "msg": "Couldn't delete xpath target: /business/rating/@subjective ('_ElementStringResult' object has no attribute 'attrname')"
}