diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-02-28 16:43:12 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-02-28 16:43:12 +0000 |
commit | ffd1a5e3b20720f8a63cfa2f83f186e77a8e2f5e (patch) | |
tree | 7cffd0d0829b6a7846563fdaf871199f78805b00 /src/lib/Client/Debian.py | |
parent | 0c4bb9314b84e6a798fe9c33767d5cf456462a47 (diff) | |
download | bcfg2-ffd1a5e3b20720f8a63cfa2f83f186e77a8e2f5e.tar.gz bcfg2-ffd1a5e3b20720f8a63cfa2f83f186e77a8e2f5e.tar.bz2 bcfg2-ffd1a5e3b20720f8a63cfa2f83f186e77a8e2f5e.zip |
Switch more client toolsets over to the new logging infrastructure
Depricate os.system and os.popen in favor of Toolset.saferun
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1778 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Debian.py')
-rw-r--r-- | src/lib/Client/Debian.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py index d02252180..fc5e3b2bc 100644 --- a/src/lib/Client/Debian.py +++ b/src/lib/Client/Debian.py @@ -71,13 +71,13 @@ class ToolsetImpl(Bcfg2.Client.Toolset.Toolset): if entry.attrib['status'] == 'off': if self.setup['dryrun']: - print "Disabling service %s" % (entry.get('name')) + self.logger.info("Disabling service %s" % (entry.get('name'))) else: self.saferun("/etc/init.d/%s stop" % (entry.get('name'))) cmdrc = self.saferun("/usr/sbin/update-rc.d -f %s remove" % entry.get('name'))[0] else: if self.setup['dryrun']: - print "Enabling service %s" % (entry.attrib['name']) + self.logger.info("Enabling service %s" % (entry.attrib['name'])) else: cmdrc = self.saferun("/usr/sbin/update-rc.d %s defaults" % (entry.attrib['name']))[0] if cmdrc: |