From 875e7c3e5036b1410e4170c4ff2589c3f12e5ac7 Mon Sep 17 00:00:00 2001 From: YuandongXu <786018072@qq.com> Date: Sat, 29 Jun 2019 04:14:53 +0800 Subject: [PATCH] update to fix a bug. (#58200) --- lib/ansible/modules/network/cloudengine/ce_bfd_global.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/cloudengine/ce_bfd_global.py b/lib/ansible/modules/network/cloudengine/ce_bfd_global.py index c1416013d8..d7b2d11a93 100644 --- a/lib/ansible/modules/network/cloudengine/ce_bfd_global.py +++ b/lib/ansible/modules/network/cloudengine/ce_bfd_global.py @@ -281,7 +281,7 @@ class BfdGlobal(object): root = ElementTree.fromstring(xml_str) # get bfd global info - glb = root.find("data/bfd/bfdSchGlobal") + glb = root.find("bfd/bfdSchGlobal") if glb: for attr in glb: bfd_dict["global"][attr.tag] = attr.text @@ -495,6 +495,8 @@ class BfdGlobal(object): return self.end_state["global"] = bfd_dict.get("global") + if self.existing == self.end_state: + self.changed = False def work(self): """worker"""