Fixed issue with parents havings depth of 3+ on add method of NetworkConfig
This commit is contained in:
parent
710a96956e
commit
41f45336a9
1 changed files with 2 additions and 0 deletions
|
@ -259,6 +259,8 @@ class NetworkConfig(object):
|
|||
config.append(line)
|
||||
if parent:
|
||||
parent.children.append(line)
|
||||
if parent.parents:
|
||||
line.parents.append(*parent.parents)
|
||||
line.parents.append(parent)
|
||||
parent = line
|
||||
offset += self.indent
|
||||
|
|
Loading…
Reference in a new issue