diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-09-21 20:50:12 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-09-21 20:50:12 +0000 |
commit | ed78f8df3edaab67f7fa8becd46360670e4ec99d (patch) | |
tree | 0ceb11b6c2c3fdf8abb08828d8fea44163fe83a6 /src/lib/Client | |
parent | 5e17fd65e4f8ed1ec888ab2771aae9026b93c7ee (diff) | |
download | bcfg2-ed78f8df3edaab67f7fa8becd46360670e4ec99d.tar.gz bcfg2-ed78f8df3edaab67f7fa8becd46360670e4ec99d.tar.bz2 bcfg2-ed78f8df3edaab67f7fa8becd46360670e4ec99d.zip |
Services: Use the 'target' attribute for custom services
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5445 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py index d857962a2..b6936af18 100644 --- a/src/lib/Client/Tools/__init__.py +++ b/src/lib/Client/Tools/__init__.py @@ -322,7 +322,7 @@ class SvcTool(Tool): self.logger.debug('Restarting service %s' % service.get('name')) restart_target = 'restart' if service.get('mode', 'default') == 'custom': - restart_target = service.get('custom', 'restart') + restart_target = service.get('target', 'restart') return self.cmd.run(self.get_svc_command(service, restart_target))[0] def check_service(self, service): |