From 82a6f9d198bd428fc3ebb14baa19b503fc827fbc Mon Sep 17 00:00:00 2001 From: kamleshdudani <53537824+kamleshdudani@users.noreply.github.com> Date: Fri, 4 Oct 2019 14:56:39 +0200 Subject: [PATCH] Update xml.py (#63128) ##### SUMMARY Update example to remove escape characters in front of special characters as it is not needed to add explicitly anymore with latest ansible version ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr --- lib/ansible/modules/files/xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/xml.py b/lib/ansible/modules/files/xml.py index 5e707c65256..ab69d8ef57d 100644 --- a/lib/ansible/modules/files/xml.py +++ b/lib/ansible/modules/files/xml.py @@ -225,7 +225,7 @@ EXAMPLES = r''' - name: Add several more beers to the 'beers' element and add them before the 'Rochefort 10' element xml: path: /foo/bar.xml - xpath: '/business/beers/beer[text()=\"Rochefort 10\"]' + xpath: '/business/beers/beer[text()="Rochefort 10"]' insertbefore: yes add_children: - beer: Old Rasputin