From c43ea832754d0640dcf7ba9ae2cb2759476a2ea2 Mon Sep 17 00:00:00 2001 From: Peter Sprygada Date: Wed, 27 Apr 2016 14:41:00 -0400 Subject: [PATCH] fixes #15496 changed to using OrderedDict to preserve order of lines --- lib/ansible/module_utils/netcfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py index ff1d138c23e..68607f525c9 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]