Backport/2.8/56976 update ce_ntp.py to fix bug (#57175)
* update ce_ntp.py and remove the root tag name to find all nodes (#56976)
* add a maintainer
* update ce_ntp.py and remove the root tag name to find all node
* update ce_ntp.py and remove the root tag name to find all node
(cherry picked from commit 0137c4343b
)
* add changelogs fragments
* add changelogs fragments
This commit is contained in:
parent
211a2da2b9
commit
814349c368
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- update ce_ntp.py and remove the root tag name to find all nodes(https://github.com/ansible/ansible/pull/56976).
|
|
@ -442,7 +442,7 @@ class Ntp(object):
|
|||
|
||||
# get all ntp config info
|
||||
root = ElementTree.fromstring(xml_str)
|
||||
ntpsite = root.findall("data/ntp/ntpUCastCfgs/ntpUCastCfg")
|
||||
ntpsite = root.findall("ntp/ntpUCastCfgs/ntpUCastCfg")
|
||||
for nexthop in ntpsite:
|
||||
ntp_dict = dict()
|
||||
for ele in nexthop:
|
||||
|
|
Loading…
Reference in a new issue