aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r--os_net_config/impl_ifcfg.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py
index dfbf889..c871296 100644
--- a/os_net_config/impl_ifcfg.py
+++ b/os_net_config/impl_ifcfg.py
@@ -57,13 +57,13 @@ class IfcfgNetConfig(os_net_config.NetConfig):
logger.info('Ifcfg net config provider created.')
def child_members(self, name):
- children = []
+ children = set()
try:
for member in self.member_names[name]:
- #children.append(member)
- children.extend(self.child_members(member))
+ children.add(member)
+ children.update(self.child_members(member))
except KeyError:
- children.append(name)
+ children.add(name)
return children
def _add_common(self, base_opt):