1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #15743 from mattchilders/multi-parent-netcfg-difference

Fixed issue with parents havings depth of 3+ on add method of Network…
This commit is contained in:
Peter Sprygada 2016-05-18 09:30:57 -04:00
commit d197407306

View file

@ -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