Only initialize the API once in the installer

Make the ldap2 plugin schema loader ignore SERVER_DOWN errors

525303
This commit is contained in:
Rob Crittenden
2009-09-28 23:34:15 -04:00
committed by Jason Gerard DeRose
parent 38a27b1c2f
commit e4877c946f
4 changed files with 36 additions and 35 deletions

View File

@@ -60,9 +60,12 @@ class ra(rabase.rabase):
self.ipa_key_size = "2048"
self.ipa_certificate_nickname = "ipaCert"
self.ca_certificate_nickname = "caCert"
f = open(self.pwd_file, "r")
self.password = f.readline().strip()
f.close()
try:
f = open(self.pwd_file, "r")
self.password = f.readline().strip()
f.close()
except IOError:
self.password = ''
super(ra, self).__init__()
def _request(self, url, **kw):