From 0137c4343bbc0706024bb50809c22b2b15b1a965 Mon Sep 17 00:00:00 2001 From: xuxiaowei0512 Date: Thu, 30 May 2019 00:39:38 +0800 Subject: [PATCH] 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 --- lib/ansible/modules/network/cloudengine/ce_ntp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/cloudengine/ce_ntp.py b/lib/ansible/modules/network/cloudengine/ce_ntp.py index ab0dfceeacb..cade2e8e6cc 100644 --- a/lib/ansible/modules/network/cloudengine/ce_ntp.py +++ b/lib/ansible/modules/network/cloudengine/ce_ntp.py @@ -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: