From 163f425fa604b898f2d2b3aef47770790adad3ea Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Fri, 26 Sep 2008 02:45:40 +0000 Subject: bcfg -> bcfg2 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4921 ce84e21b-d406-0410-9b95-82705330c041 --- man/bcfg2.1 | 2 +- src/lib/Server/Plugins/Metadata.py | 12 ++++++------ src/sbin/bcfg2-server | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/man/bcfg2.1 b/man/bcfg2.1 index 841beb7d9..23ea0eaaf 100644 --- a/man/bcfg2.1 +++ b/man/bcfg2.1 @@ -1,6 +1,6 @@ .TH "bcfg2" 1 .SH NAME -bcfg \- reconfigure machine based on settings in BCFG2 +bcfg2 \- reconfigure machine based on settings in BCFG2 .SH SYNOPSIS .B bcfg2 .I [-d] [-v] [-p] [-c cache file] [-e] [-f config file] [-I] [-q] [-b bundle] diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index c6008c7f4..c19d1f9a4 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -1,4 +1,4 @@ -'''This file stores persistent metadata for the BCFG Configuration Repository''' +'''This file stores persistent metadata for the Bcfg2 Configuration Repository''' __revision__ = '$Revision$' import lxml.etree, re, socket, time, fcntl, copy @@ -141,7 +141,7 @@ class Metadata(Bcfg2.Server.Plugin.MetadataPlugin, self.probedata = {} self.extra = {'groups.xml':[], 'clients.xml':[]} self.password = core.password - self.load_probedata() + self.load_probedata() def get_groups(self): '''return groups xml tree''' @@ -168,8 +168,8 @@ class Metadata(Bcfg2.Server.Plugin.MetadataPlugin, element.set(key, val) node = self.search_client(client_name, root) if node != None: - self.logger.error("Client \"%s\" already exists" % (client_name)) - raise MetadataConsistencyError + self.logger.error("Client \"%s\" already exists" % (client_name)) + raise MetadataConsistencyError root.append(element) client_tree = open(self.data + "/clients.xml","w") fd = client_tree.fileno() @@ -341,7 +341,7 @@ class Metadata(Bcfg2.Server.Plugin.MetadataPlugin, if profile not in self.public: self.logger.error("Failed to set client %s to private group %s" % (client, profile)) raise MetadataConsistencyError - if self.clients.has_key(client): + if self.clients.has_key(client): self.logger.info("Changing %s group from %s to %s" % (client, self.clients[client], profile)) cli = self.clientdata_original.xpath('.//Client[@name="%s"]' % (client)) cli[0].set('profile', profile) @@ -588,7 +588,7 @@ class Metadata(Bcfg2.Server.Plugin.MetadataPlugin, def GetClientByProfile(self, profile): '''Return a list of clients that are members of a given profile''' return [client for client in self.clients \ - if self.clients[client] == profile] + if self.clients[client] == profile] def viz(self, hosts, bundles, key, colors): '''admin mode viz support''' diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server index ca1565101..9dc40f333 100755 --- a/src/sbin/bcfg2-server +++ b/src/sbin/bcfg2-server @@ -24,7 +24,7 @@ class SetupError(Exception): pass class Bcfg2Serv(Bcfg2.Component.Component): - """The Bcfg2 Server component providing XML-RPC access to Bcfg methods""" + """The Bcfg2 Server component providing XML-RPC access to Bcfg2 methods""" __name__ = 'bcfg2' __implementation__ = 'bcfg2' fork_funcs = ['GetConfig', 'GetProbes'] -- cgit v1.2.3-1-g7c22