Commit f6fd727d authored by David Johnson's avatar David Johnson

Minor bugfix.

parent 5b4d6926
Pipeline #3060 passed with stages
in 15 seconds
...@@ -83,7 +83,7 @@ for i in node.findall("g:interface",namespaces=nsmap): ...@@ -83,7 +83,7 @@ for i in node.findall("g:interface",namespaces=nsmap):
# Collect ipv6 addrs for /etc/hosts # Collect ipv6 addrs for /etc/hosts
hostslines = [] hostslines = []
for n in x.findall("g:node",namespaces=nsmap): for n in x.findall("g:node",namespaces=nsmap):
for i in node.findall("g:interface",namespaces=nsmap): for i in n.findall("g:interface",namespaces=nsmap):
for a in i.findall("c:ip",namespaces=nsmap): for a in i.findall("c:ip",namespaces=nsmap):
if a.get("type") != "ipv6": if a.get("type") != "ipv6":
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment