diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py index 0c2f57880b..15011865df 100644 --- a/lib/ansible/module_utils/netcfg.py +++ b/lib/ansible/module_utils/netcfg.py @@ -108,7 +108,7 @@ class NetworkConfig(object): return self._config def __str__(self): - config = dict() + config = collections.OrderedDict() for item in self._config: self.expand(item, config) return '\n'.join(self.flatten(config))