From 4512f664a736852654ef6d511a15883f165c4789 Mon Sep 17 00:00:00 2001 From: yanzhangi <51999930+yanzhangi@users.noreply.github.com> Date: Tue, 13 Aug 2019 14:11:51 +0800 Subject: [PATCH] Update ce_bfd_global to fix bugs (#60412) --- lib/ansible/modules/network/cloudengine/ce_bfd_global.py | 3 ++- 1 file changed, 2 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 d7b2d11a932..77bedb5e93f 100644 --- a/lib/ansible/modules/network/cloudengine/ce_bfd_global.py +++ b/lib/ansible/modules/network/cloudengine/ce_bfd_global.py @@ -284,7 +284,8 @@ class BfdGlobal(object): glb = root.find("bfd/bfdSchGlobal") if glb: for attr in glb: - bfd_dict["global"][attr.tag] = attr.text + if attr.text is not None: + bfd_dict["global"][attr.tag] = attr.text return bfd_dict