bugfix netcfg return config as str

fixes issue where netcfg would return out of order configuration
pull/15299/head
Peter Sprygada 10 years ago
parent 4b0aa1214c
commit b97c8ce8e7

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

Loading…
Cancel
Save