1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

bugfix netcfg return config as str

fixes issue where netcfg would return out of order configuration
This commit is contained in:
Peter Sprygada 2016-04-05 22:44:07 -04:00
parent 4b0aa1214c
commit b97c8ce8e7

View file

@ -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))