Skip to content
Snippets Groups Projects
Commit 9beb31bf authored by Thomas Woerner's avatar Thomas Woerner
Browse files

Client: Added version checks for save_state and configure_nisdomain calls

With FreeIPA 4.5 the functions save_state and configure_nisdomain have gotten
new options. A version check has been added to ipaextras and ipanss to make
sure that the modules are also working with FreeIPA 4.4.
parent aaea687a
No related branches found
No related tags found
No related merge requests found
...@@ -191,8 +191,11 @@ def main(): ...@@ -191,8 +191,11 @@ def main():
configure_firefox(options, statestore, domain) configure_firefox(options, statestore, domain)
if not no_nisdomain: if not no_nisdomain:
configure_nisdomain( if NUM_VERSION < 40500:
options=options, domain=domain, statestore=statestore) configure_nisdomain(options=options, domain=domain)
else:
configure_nisdomain(options=options, domain=domain,
statestore=statestore)
# Cleanup: Remove CCACHE_FILE # Cleanup: Remove CCACHE_FILE
try: try:
......
...@@ -215,7 +215,10 @@ def main(): ...@@ -215,7 +215,10 @@ def main():
# (if installed) # (if installed)
nscd = services.knownservices.nscd nscd = services.knownservices.nscd
if nscd.is_installed(): if nscd.is_installed():
save_state(nscd, statestore) if NUM_VERSION < 40500:
save_state(nscd)
else:
save_state(nscd, statestore)
try: try:
nscd_service_action = 'stop' nscd_service_action = 'stop'
...@@ -232,7 +235,10 @@ def main(): ...@@ -232,7 +235,10 @@ def main():
nslcd = services.knownservices.nslcd nslcd = services.knownservices.nslcd
if nslcd.is_installed(): if nslcd.is_installed():
save_state(nslcd, statestore) if NUM_VERSION < 40500:
save_state(nslcd)
else:
save_state(nslcd, statestore)
########################################################################## ##########################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment