ipaclient/library/ipanss.py: Fixed wrong name in paths.GETENT compat check

The paths.GETENT compat check was using "KDESTROY" instead of "GETENT".
This commit is contained in:
Thomas Woerner
2018-06-28 17:32:07 +02:00
parent 809e490f03
commit 34fe6103db

View File

@@ -288,7 +288,7 @@ def main():
# Particulary, SSSD might take longer than 6-8 seconds.
while n < 10 and not found:
try:
ipautil.run([paths.GETENT if hasattr(paths, "KDESTROY") else "getent", "passwd", user])
ipautil.run([paths.GETENT if hasattr(paths, "GETENT") else "getent", "passwd", user])
found = True
except Exception as e:
time.sleep(1)