From 48ec28b9dfb941bde438241506956d68f3aa032e Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Tue, 19 Nov 2019 23:53:15 +0000 Subject: [PATCH] Made HostGroup.children a dictionary --- ssh_config_utils/config_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh_config_utils/config_file.py b/ssh_config_utils/config_file.py index 1c84687..418ef35 100644 --- a/ssh_config_utils/config_file.py +++ b/ssh_config_utils/config_file.py @@ -8,12 +8,12 @@ class HostGroup: def __init__(self, name): self.parent = None self.name = name - self.children = [] + self.children = {} def add_child_group(self, name): child = HostGroup(name) child.parent = self - self.children.append(self) + self.children[name] = child return child @property