summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sprygada <privateip@users.noreply.github.com>2016-05-16 13:59:46 -0400
committerPeter Sprygada <privateip@users.noreply.github.com>2016-05-16 13:59:46 -0400
commit8f7c879574b0af9fca6cd46efbaa5cc680ad2d74 (patch)
treeb89f3bafb5014cd91c64294425b02182f8644337
parentba63ccb880ca2b683a6bf879cb8397118c065a72 (diff)
parentc43ea832754d0640dcf7ba9ae2cb2759476a2ea2 (diff)
downloadansible-8f7c879574b0af9fca6cd46efbaa5cc680ad2d74.tar.gz
Merge pull request #15629 from privateip/fix-15496
make netcfg preserve command order
-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]