Ido Barkan has uploaded a new change for review. Change subject: net: remove dead code from vdsm-restore-net-config ......................................................................
net: remove dead code from vdsm-restore-net-config Change-Id: I62ea3abdae6f9dade29266228a8f25df94f8ea23 Signed-off-by: Ido Barkan <[email protected]> --- M vdsm/vdsm-restore-net-config 1 file changed, 0 insertions(+), 15 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/00/43300/1 diff --git a/vdsm/vdsm-restore-net-config b/vdsm/vdsm-restore-net-config index 7296dfa..ccb5294 100755 --- a/vdsm/vdsm-restore-net-config +++ b/vdsm/vdsm-restore-net-config @@ -22,7 +22,6 @@ import logging import logging.config import os -import sys import threading import time import errno @@ -41,9 +40,7 @@ # Unified persistence restoration from network.api import setupNetworks, change_numvfs -from network import configurators -import pkgutil _ALL_DEVICES_UP_TIMEOUT = 5 @@ -307,18 +304,6 @@ raise else: return predicate(content) - - -def _get_all_configurators(): - """Returns the class objects of all the configurators in the netconf pkg""" - prefix = configurators.__name__ + '.' - for importer, moduleName, isPackage in pkgutil.iter_modules( - configurators.__path__, prefix): - __import__(moduleName, fromlist="_") - - for cls in configurators.Configurator.__subclasses__(): - if sys.modules[cls.__module__].is_available(): - yield cls def _nets_already_restored(nets_restored_mark): -- To view, visit https://gerrit.ovirt.org/43300 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I62ea3abdae6f9dade29266228a8f25df94f8ea23 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Ido Barkan <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
