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:
parent
4b0aa1214c
commit
b97c8ce8e7
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class NetworkConfig(object):
|
||||||
return self._config
|
return self._config
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
config = dict()
|
config = collections.OrderedDict()
|
||||||
for item in self._config:
|
for item in self._config:
|
||||||
self.expand(item, config)
|
self.expand(item, config)
|
||||||
return '\n'.join(self.flatten(config))
|
return '\n'.join(self.flatten(config))
|
||||||
|
|
Loading…
Reference in a new issue