mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
This commit is contained in:
parent
9e1f184b2d
commit
0137c4343b
1 changed files with 1 additions and 1 deletions
|
@ -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