summaryrefslogtreecommitdiffstats
path: root/ipa-server
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-09-18 22:58:10 +0200
committerSimo Sorce <ssorce@redhat.com>2008-09-19 16:04:10 -0400
commit0a0f1e8a7531d0857e7933a2d4bd30281b20718b (patch)
tree980097860f26c6a253d5485207ee9fdbc1cda784 /ipa-server
parent687a77a3bfa7525c2ccfc32f82113cbee0ba607d (diff)
downloadfreeipa-0a0f1e8a7531d0857e7933a2d4bd30281b20718b.tar.gz
freeipa-0a0f1e8a7531d0857e7933a2d4bd30281b20718b.tar.xz
freeipa-0a0f1e8a7531d0857e7933a2d4bd30281b20718b.zip
Fix architecture detection in ldapupdate
Diffstat (limited to 'ipa-server')
-rwxr-xr-xipa-server/ipaserver/ldapupdate.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ipa-server/ipaserver/ldapupdate.py b/ipa-server/ipaserver/ldapupdate.py
index f4c868383..e28562cec 100755
--- a/ipa-server/ipaserver/ldapupdate.py
+++ b/ipa-server/ipaserver/ldapupdate.py
@@ -112,9 +112,9 @@ class LDAPUpdate():
etc. Determine if a suffix is needed based on the current
architecture.
"""
- arch = platform.platform()
+ bits = platform.architecture()[0]
- if arch == "x86_64":
+ if bits == "64bit":
return "64"
else:
return ""
@@ -320,9 +320,8 @@ class LDAPUpdate():
attrlist = ['nstaskstatus', 'nstaskexitcode']
entry = None
- done = False
- while not done:
+ while True:
try:
entry = self.conn.getEntry(dn, ldap.SCOPE_BASE, "(objectclass=*)", attrlist)
except ipaerror.exception_for(ipaerror.LDAP_NOT_FOUND):
@@ -340,7 +339,7 @@ class LDAPUpdate():
if status.lower().find("finished") > -1:
logging.info("Indexing finished")
- done = True
+ break
logging.debug("Indexing in progress")
time.sleep(1)