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

pull/15949/head
machilde 9 years ago committed by Peter Sprygada
parent 710a96956e
commit 41f45336a9

@ -259,6 +259,8 @@ class NetworkConfig(object):
config.append(line) config.append(line)
if parent: if parent:
parent.children.append(line) parent.children.append(line)
if parent.parents:
line.parents.append(*parent.parents)
line.parents.append(parent) line.parents.append(parent)
parent = line parent = line
offset += self.indent offset += self.indent

Loading…
Cancel
Save