Ondřej Svoboda has uploaded a new change for review. Change subject: ifcfg: remove an unused function _getConfigValue ......................................................................
ifcfg: remove an unused function _getConfigValue Change-Id: I07f98f5852a4c1d3165565c10c10f0fb5908b12e Signed-off-by: Ondřej Svoboda <[email protected]> --- M vdsm/network/configurators/ifcfg.py 1 file changed, 0 insertions(+), 21 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/91/37791/1 diff --git a/vdsm/network/configurators/ifcfg.py b/vdsm/network/configurators/ifcfg.py index 4070d9a..e95eb34 100644 --- a/vdsm/network/configurators/ifcfg.py +++ b/vdsm/network/configurators/ifcfg.py @@ -749,27 +749,6 @@ self._backup(netinfo.NET_CONF_PREF + bridge) self._removeFile(netinfo.NET_CONF_PREF + bridge) - def _getConfigValue(self, conffile, entry): - """ - Get value from network configuration file - - :param entry: entry to look for (entry=value) - :type entry: string - - :returns: value for entry (or None) - :rtype: string - - Search for entry in conffile and return - its value or None if not found - """ - with open(conffile) as f: - entries = [line for line in f.readlines() - if line.startswith(entry + '=')] - if len(entries) != 0: - value = entries[0].split('=', 1)[1] - return value.strip() - return None - def _updateConfigValue(self, conffile, entry, value): """ Set value for network configuration file. If value is None, remove the -- To view, visit http://gerrit.ovirt.org/37791 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I07f98f5852a4c1d3165565c10c10f0fb5908b12e Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Ondřej Svoboda <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
