summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/__init__.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-12-08 03:52:27 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-12-08 03:52:27 +0000
commit2dd81e93aa03a3c974ce492cb07458ea9417e3b8 (patch)
tree0e740484abdb50bbc3d8c0834078a5345ef9e4b5 /src/lib/Client/Tools/__init__.py
parent6ac0ad8babaee28757bc6d9372bf1ecf6ee16bd4 (diff)
downloadbcfg2-2dd81e93aa03a3c974ce492cb07458ea9417e3b8.tar.gz
bcfg2-2dd81e93aa03a3c974ce492cb07458ea9417e3b8.tar.bz2
bcfg2-2dd81e93aa03a3c974ce492cb07458ea9417e3b8.zip
pylint fixes for client code
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4991 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/__init__.py')
-rw-r--r--src/lib/Client/Tools/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index dfe7abf38..22aeb664b 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -66,7 +66,7 @@ class Tool:
'''
All tools subclass this. It defines all interfaces that need to be defined
'''
- __name__ = 'Tool'
+ name = 'Tool'
__execs__ = []
__handles__ = []
__req__ = {}
@@ -88,7 +88,7 @@ class Tool:
mode = stat.S_IMODE(os.stat(filename)[stat.ST_MODE])
if mode & stat.S_IEXEC != stat.S_IEXEC:
self.logger.debug("%s: %s not executable" % \
- (self.__name__, filename))
+ (self.name, filename))
raise toolInstantiationError
except OSError:
raise toolInstantiationError
@@ -200,7 +200,7 @@ class PkgTool(Tool):
'''PkgTool provides a one-pass install with fallback for use with packaging systems'''
pkgtool = ('echo %s', ('%s', ['name']))
pkgtype = 'echo'
- __name__ = 'PkgTool'
+ name = 'PkgTool'
def __init__(self, logger, setup, config):
Tool.__init__(self, logger, setup, config)
@@ -277,7 +277,7 @@ class PkgTool(Tool):
class SvcTool(Tool):
'''This class defines basic Service behavior'''
- __name__ = 'SvcTool'
+ name = 'SvcTool'
__svcrestart__ = 'reload'
def BundleUpdated(self, bundle, states):