From 51e1f55b7584aebd54fa5b1b766d3aa7faf1af27 Mon Sep 17 00:00:00 2001 From: Jonas Reineke <83709620+jonasreineke@users.noreply.github.com> Date: Tue, 20 Jul 2021 18:37:09 +0200 Subject: [PATCH] fix(panos_facts): Fix IPv6 on subinterfaces (#218) Co-authored-by: Jonas Reineke --- plugins/modules/panos_facts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/panos_facts.py b/plugins/modules/panos_facts.py index 53b71f307..f2ca0bab1 100644 --- a/plugins/modules/panos_facts.py +++ b/plugins/modules/panos_facts.py @@ -380,8 +380,8 @@ def populate_facts(self): "ipv6": [], } for sub_child in child.children: - if isinstance(child, IPv6Address): - child_info["ipv6"].append(sub_child.name) + if isinstance(sub_child, IPv6Address): + child_info["ipv6"].append(sub_child.uid) interfaces.append(child_info) interfaces.append(iface_info)