diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-06-08 08:16:41 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-06-09 08:09:54 -0500 |
commit | a2755d2d1a111ad4e55f88a166a5b02856d363cd (patch) | |
tree | 82dabe1dbbe429e9d5cbe554ffb16702a79041d2 /src/lib/Server/Plugins/Probes.py | |
parent | e31f5234256e5234348fc67cf45e6f3462e1fbb8 (diff) | |
download | bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.tar.gz bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.tar.bz2 bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.zip |
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Probes.py')
-rw-r--r-- | src/lib/Server/Plugins/Probes.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Probes.py b/src/lib/Server/Plugins/Probes.py index 42ae2fe37..22df03a64 100644 --- a/src/lib/Server/Plugins/Probes.py +++ b/src/lib/Server/Plugins/Probes.py @@ -50,6 +50,7 @@ class ProbeSet(Bcfg2.Server.Plugin.EntrySet): class Probes(Bcfg2.Server.Plugin.Plugin, Bcfg2.Server.Plugin.Probing, Bcfg2.Server.Plugin.Connector): + """A plugin to gather information from a client machine.""" name = 'Probes' __version__ = '$Id$' __author__ = 'bcfg-dev@mcs.anl.gov' @@ -70,7 +71,7 @@ class Probes(Bcfg2.Server.Plugin.Plugin, self.load_data() def write_data(self): - '''write probe data out for use with bcfg2-info''' + """Write probe data out for use with bcfg2-info.""" top = lxml.etree.Element("Probed") for client, probed in self.probedata.iteritems(): cx = lxml.etree.SubElement(top, 'Client', name=client) @@ -105,7 +106,7 @@ class Probes(Bcfg2.Server.Plugin.Plugin, self.cgroups[client.get('name')].append(pdata.get('name')) def GetProbes(self, meta, force=False): - '''Return a set of probes for execution on client''' + """Return a set of probes for execution on client.""" return self.probes.get_probe_data(meta) def ReceiveData(self, client, datalist): @@ -116,7 +117,7 @@ class Probes(Bcfg2.Server.Plugin.Plugin, self.write_data() def ReceiveDataItem(self, client, data): - '''Receive probe results pertaining to client''' + """Receive probe results pertaining to client.""" if not self.cgroups.has_key(client.hostname): self.cgroups[client.hostname] = [] if data.text == None: |