From 3220e62901c5a5f04828f9c029ad7421d3f09468 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 1 Apr 2008 01:34:29 +0000 Subject: Remove dead code git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4466 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2 | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/sbin') 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 -- cgit v1.2.3-1-g7c22