summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-04-01 01:34:29 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-04-01 01:34:29 +0000
commit3220e62901c5a5f04828f9c029ad7421d3f09468 (patch)
treef91e6724ffb8fe31ddda3287c186f9d5c0eff7ba
parent1686539d595a5474dbbbfab473f33a0c0905d4aa (diff)
downloadbcfg2-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
-rwxr-xr-xsrc/sbin/bcfg227
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