diff --git a/bin/netsvc.py b/bin/netsvc.py index 0961aa20366..b47faba823e 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -56,6 +56,11 @@ class Service(object): def exists(cls, name): return name in cls._services + @classmethod + def remove(cls, name): + if cls.exits(name): + cls._services.pop(name) + def exportMethod(self, method): if callable(method): self._methods[method.__name__] = method