mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fixed issue with parents havings depth of 3+ on add method of NetworkConfig
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user