summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sprygada <psprygada@ansible.com>2016-04-27 14:41:00 -0400
committerPeter Sprygada <psprygada@ansible.com>2016-05-16 14:05:09 -0400
commitd9fa5a3b8074fbea82a967dda92f7d1b59ab9b46 (patch)
treedf525844dd51c23f62dd152a2cc66ab4f69779c9
parente0112a3db33e70b93cb107913ed1b9996acd6eb0 (diff)
downloadansible-d9fa5a3b8074fbea82a967dda92f7d1b59ab9b46.tar.gz
fixes #15496
changed to using OrderedDict to preserve order of lines
-rw-r--r--lib/ansible/module_utils/netcfg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py
index ff1d138c23..68607f525c 100644
--- a/lib/ansible/module_utils/netcfg.py
+++ b/lib/ansible/module_utils/netcfg.py
@@ -229,7 +229,7 @@ class NetworkConfig(object):
if self._device_os == 'junos':
return updates
- diffs = dict()
+ diffs = collections.OrderedDict()
for update in updates:
if replace == 'block' and update.parents:
update = update.parents[-1]