From d52c925dedfabc0f8ba0b3a137fcf977749a055e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Jun 2010 10:55:15 +0000 Subject: Updated files to match PEP 257 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5894 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Admin/Pull.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/lib/Server/Admin/Pull.py') diff --git a/src/lib/Server/Admin/Pull.py b/src/lib/Server/Admin/Pull.py index 993dbc0c5..d6dfa9e5a 100644 --- a/src/lib/Server/Admin/Pull.py +++ b/src/lib/Server/Admin/Pull.py @@ -2,10 +2,9 @@ import getopt import Bcfg2.Server.Admin class Pull(Bcfg2.Server.Admin.MetadataCore): - ''' - Pull mode retrieves entries from clients and - integrates the information into the repository - ''' + """Pull mode retrieves entries from clients and + integrates the information into the repository. + """ __shorthelp__ = ("Integrate configuration information " "from clients into the server repository") __longhelp__ = (__shorthelp__ + "\n\nbcfg2-admin pull [-v] [-f][-I] " @@ -46,7 +45,7 @@ class Pull(Bcfg2.Server.Admin.MetadataCore): self.PullEntry(gargs[0], gargs[1], gargs[2]) def BuildNewEntry(self, client, etype, ename): - '''construct a new full entry for given client/entry from statistics''' + """Construct a new full entry for given client/entry from statistics.""" new_entry = {'type':etype, 'name':ename} for plugin in self.bcore.pull_sources: try: @@ -71,7 +70,7 @@ class Pull(Bcfg2.Server.Admin.MetadataCore): return new_entry def Choose(self, choices): - '''Determine where to put pull data''' + """Determine where to put pull data.""" if self.mode == 'interactive': for choice in choices: print "Plugin returned choice:" @@ -94,7 +93,7 @@ class Pull(Bcfg2.Server.Admin.MetadataCore): return choices[0] def PullEntry(self, client, etype, ename): - '''Make currently recorded client state correct for entry''' + """Make currently recorded client state correct for entry.""" new_entry = self.BuildNewEntry(client, etype, ename) meta = self.bcore.build_metadata(client) -- cgit v1.2.3-1-g7c22