diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-02-07 20:13:44 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-02-07 20:13:44 +0000 |
commit | 8f265b38c7798d7933173d4dcbe9e6b3ad736c4c (patch) | |
tree | e8fa1b4dc9b96c7440cc5b66d9942697900a2bb5 | |
parent | 110ec1e7cb42410b32b3ee451eccbd5bbfe62ea1 (diff) | |
download | bcfg2-8f265b38c7798d7933173d4dcbe9e6b3ad736c4c.tar.gz bcfg2-8f265b38c7798d7933173d4dcbe9e6b3ad736c4c.tar.bz2 bcfg2-8f265b38c7798d7933173d4dcbe9e6b3ad736c4c.zip |
Git: pylint code cleanups
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5715 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Plugins/Git.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Git.py b/src/lib/Server/Plugins/Git.py index 0b66eff9c..9433c6481 100644 --- a/src/lib/Server/Plugins/Git.py +++ b/src/lib/Server/Plugins/Git.py @@ -1,3 +1,5 @@ +"""The Git plugin provides a revision interface for bcfg2 repos using git""" + import os from dulwich.repo import Repo import Bcfg2.Server.Plugin @@ -6,14 +8,17 @@ import Bcfg2.Server.Plugin import logging logger = logging.getLogger('Bcfg2.Plugins.Git') + class Git(Bcfg2.Server.Plugin.Plugin, Bcfg2.Server.Plugin.Version): + """Git is a version plugin for dealing with bcfg2 repos""" name = 'Git' __version__ = '$Id$' __author__ = 'bcfg-dev@mcs.anl.gov' def __init__(self, core, datastore): Bcfg2.Server.Plugin.Plugin.__init__(self, core, datastore) + Bcfg2.Server.Plugin.Version.__init__(self) self.core = core self.datastore = datastore @@ -27,10 +32,10 @@ class Git(Bcfg2.Server.Plugin.Plugin, logger.error("%s is not a directory" % git_dir) raise Bcfg2.Server.Plugin.PluginInitError - logger.debug("Initialized git plugin with git directory = %s" % git_dir) + logger.debug("Initialized git plugin with git directory %s" % git_dir) def get_revision(self): - '''Read git revision information for the bcfg2 repository''' + """Read git revision information for the bcfg2 repository""" try: repo = Repo(self.datastore) revision = repo.head() |