summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Admin/Pull.py
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-06-07 10:55:15 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-06-07 08:42:52 -0500
commitd52c925dedfabc0f8ba0b3a137fcf977749a055e (patch)
treecba4ec4d0da8d5d55b2999cded97a22f6edfe659 /src/lib/Server/Admin/Pull.py
parent673eab34d1aa60b2a159bd8371f4449564fbb8cd (diff)
downloadbcfg2-d52c925dedfabc0f8ba0b3a137fcf977749a055e.tar.gz
bcfg2-d52c925dedfabc0f8ba0b3a137fcf977749a055e.tar.bz2
bcfg2-d52c925dedfabc0f8ba0b3a137fcf977749a055e.zip
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5894 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin/Pull.py')
-rw-r--r--src/lib/Server/Admin/Pull.py13
1 files changed, 6 insertions, 7 deletions
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)