Fixed issue with parents havings depth of 3+ on add method of NetworkConfig

pull/15743/head
machilde 9 years ago
parent 7b58240654
commit 97c6389d62

@ -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…
Cancel
Save