mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
bugfix netcfg return config as str
fixes issue where netcfg would return out of order configuration
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user