diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-08-29 21:22:19 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-08-29 21:22:19 +0000 |
commit | 9061fa97bcece905eedb1d4ab9714f037d0b587e (patch) | |
tree | 05a7bbc8e83535df596f9b3eed7a5db20ae4aa32 /src | |
parent | b3aec9b4cd99515dc45c032890045e0121b7b23e (diff) | |
download | bcfg2-9061fa97bcece905eedb1d4ab9714f037d0b587e.tar.gz bcfg2-9061fa97bcece905eedb1d4ab9714f037d0b587e.tar.bz2 bcfg2-9061fa97bcece905eedb1d4ab9714f037d0b587e.zip |
Get a finalized, working version of lrc services
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2150 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Client/Solaris.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/Client/Solaris.py b/src/lib/Client/Solaris.py index a0bb01c66..78f124783 100644 --- a/src/lib/Client/Solaris.py +++ b/src/lib/Client/Solaris.py @@ -2,7 +2,7 @@ '''This provides bcfg2 support for Solaris''' __revision__ = '$Revision$' -import os, lxml.etree +import os from glob import glob from os import stat, unlink from re import compile as regcompile @@ -91,7 +91,6 @@ class ToolsetImpl(Toolset): self.logger.info('Failed to locate FMRI for service %s' % entry.get('name')) return False if entry.get('FMRI').startswith('lrc'): - self.logger.debug("Starting lrc validation for %s" % (entry.get('name'))) filename = entry.get('FMRI').split('/')[-1] # this is a legacy service gname = "/etc/rc*.d/%s" % filename @@ -103,7 +102,6 @@ class ToolsetImpl(Toolset): else: self.logger.debug("No service matching %s" % (entry.get("FMRI"))) return entry.get('status') == 'off' - self.logger.debug("starting non-lrc validatiaon for %s" % (entry.get('name'))) try: srvdata = self.saferun("/usr/bin/svcs -H -o STA %s" % entry.attrib['name'])[1][0].split() except IndexError: @@ -117,7 +115,6 @@ class ToolsetImpl(Toolset): def InstallService(self, entry): '''Install Service entry''' - print lxml.etree.tostring(entry) if not entry.attrib.has_key('status'): self.logger.info('Insufficient information for Service %s; cannot Install' % entry.get('name')) return False |