checking in before i change a regex pattern. this currently will grab commented out defaults, but we don't want that since it complicates things - so we hardcode in shipped defaults.

This commit is contained in:
2019-12-30 12:59:52 -05:00
parent 7f3b8b98aa
commit c22b473b49
9 changed files with 124 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ class Connection(_common.BaseConnection):
_logger.info('Building config.')
if self.device == 'auto':
self.device = _common.getDefIface(self.connection_type)
self._cfg = configparser.ConfigParser()
self._cfg = configparser.ConfigParser(allow_no_value = True, interpolation = None)
self._cfg.optionxform = str
self._cfg['connection'] = {'id': self.id,
'uuid': self.uuid,