ipaclient: Use paths variables for executables used in modules

paths.KDESTROY instead of "kdestroy" and paths.GETENT instead of "getent"

Affected modules:
  roles/ipaclient/library/ipahost.py
  roles/ipaclient/library/ipajoin.py
  roles/ipaclient/library/ipanss.py
This commit is contained in:
Thomas Woerner
2018-06-21 12:48:24 +02:00
parent 7b009c4bb4
commit 285790231a
3 changed files with 4 additions and 4 deletions

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(["getent", "passwd", user])
ipautil.run([paths.GETENT if hasattr(paths, "KDESTROY") else "getent", "passwd", user])
found = True
except Exception as e:
time.sleep(1)