Skip to content

Commit

Permalink
Merge pull request ansible#15743 from mattchilders/multi-parent-netcf…
Browse files Browse the repository at this point in the history
…g-difference

Fixed issue with parents havings depth of 3+ on add method of Network…
  • Loading branch information
privateip committed May 18, 2016
2 parents 61f2147 + 97c6389 commit d197407
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/module_utils/netcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ def add(self, lines, parents=None):
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
Expand Down

0 comments on commit d197407

Please sign in to comment.