summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-24 16:19:08 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-24 16:19:08 -0500
commite2d418287724d25e85d067672049638af022c2c3 (patch)
tree28bf1458c6964bcac9a71029c539e512beafd8db /src/lib/Client
parentd530222606cf01051daa7fb0508f17bcd27d1d00 (diff)
downloadbcfg2-e2d418287724d25e85d067672049638af022c2c3.tar.gz
bcfg2-e2d418287724d25e85d067672049638af022c2c3.tar.bz2
bcfg2-e2d418287724d25e85d067672049638af022c2c3.zip
implemented something like service removal (#1075)
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Tools/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 9d0c69892..0c0aa6b8e 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -309,6 +309,13 @@ class SvcTool(Tool):
# not supported for this driver
return 0
+ def Remove(self, services):
+ """ Dummy implementation of service removal method """
+ if self.setup['servicemode'] != 'disabled':
+ for entry in services:
+ entry.set("status", "off")
+ self.InstallService(entry)
+
def BundleUpdated(self, bundle, states):
"""The Bundle has been updated."""
if self.setup['servicemode'] == 'disabled':