From 41f45336a9b71b311f0ca3ed07df077a4d46996d Mon Sep 17 00:00:00 2001 From: machilde Date: Thu, 5 May 2016 00:36:22 -0500 Subject: Fixed issue with parents havings depth of 3+ on add method of NetworkConfig --- lib/ansible/module_utils/netcfg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py index 20a3d3e681..6f6bbee6e1 100644 --- a/lib/ansible/module_utils/netcfg.py +++ b/lib/ansible/module_utils/netcfg.py @@ -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 -- cgit v1.2.1