Maybe lay off of denyhosts. . .

This commit is contained in:
Jon Ciesla 2012-09-28 09:40:19 -05:00
parent ec9e60917a
commit 41625c5e72

View file

@ -752,14 +752,6 @@ if __name__ == '__main__':
print "Bugzilla call failed:" print "Bugzilla call failed:"
print e print e
exit(1) exit(1)
print "Making sure " + options.pkghost + " is available..."
try:
sshsock = socket.create_connection((options.pkghost, 22))
sshsock.close()
except Exception, e:
print options.pkghost + " unavailable."
print e
exit(1)
print "Querying bugzilla..." print "Querying bugzilla..."
try: try:
@ -774,6 +766,15 @@ if __name__ == '__main__':
print "No requests to process!" print "No requests to process!"
exit(0) exit(0)
print "Making sure " + options.pkghost + " is available..."
try:
sshsock = socket.create_connection((options.pkghost, 22))
sshsock.close()
except Exception, e:
print options.pkghost + " unavailable."
print e
exit(1)
print "Connecting to pkgdb..." print "Connecting to pkgdb..."
config = parse_pkgdb_config() config = parse_pkgdb_config()
pkgdb = PackageDB(config['pkgdb.url'], username=options.user, pkgdb = PackageDB(config['pkgdb.url'], username=options.user,