mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 20:24:23 -07:00
Fixed issue with parents havings depth of 3+ on add method of NetworkConfig
This commit is contained in:
parent
7b58240654
commit
97c6389d62
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue