diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-04-01 01:34:29 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-04-01 01:34:29 +0000 |
commit | 3220e62901c5a5f04828f9c029ad7421d3f09468 (patch) | |
tree | f91e6724ffb8fe31ddda3287c186f9d5c0eff7ba /src | |
parent | 1686539d595a5474dbbbfab473f33a0c0905d4aa (diff) | |
download | bcfg2-3220e62901c5a5f04828f9c029ad7421d3f09468.tar.gz bcfg2-3220e62901c5a5f04828f9c029ad7421d3f09468.tar.bz2 bcfg2-3220e62901c5a5f04828f9c029ad7421d3f09468.zip |
Remove dead code
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4466 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2 | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 83b09e111..2ca7ef92f 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -300,33 +300,6 @@ class Client: self.logger.error("Failed to upload configuration statistics") raise SystemExit(2) - def GetProxy(self): - '''return a proxy instance, verifying fingerprint(s)''' - prints = self.setup['fingerprint'] - if not prints: - msg = 'no server x509 fingerprint; no server verification performed!' - print >> sys.stderr, msg - - # create the proxy and try to connect - loop for each fingerprint - for p in prints: - try: - proxy = Bcfg2.Proxy.ComponentProxy(self.setup['server'], - self.setup['user'], - self.setup['password'], - p) - proxy.CheckConnection() - return proxy - except Bcfg2.tlslite.errors.TLSFingerprintError: - self.logger.warn("Fingerprint %s failed" % p) - self.logger.warn('Trying next fingerprint, if any') - continue - except: - break - - self.logger.debug("???", exc_info=1) - self.fatal_error("failed to instantiate proxy to server") - raise SystemExit, 1 - class FingerCheck(object): def __init__(self, fprints): self.fingerprints = fprints |