mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 03:05:54 +00:00
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.
This commit is contained in:
@@ -215,7 +215,10 @@ def main():
|
||||
# (if installed)
|
||||
nscd = services.knownservices.nscd
|
||||
if nscd.is_installed():
|
||||
save_state(nscd, statestore)
|
||||
if NUM_VERSION < 40500:
|
||||
save_state(nscd)
|
||||
else:
|
||||
save_state(nscd, statestore)
|
||||
|
||||
try:
|
||||
nscd_service_action = 'stop'
|
||||
@@ -232,7 +235,10 @@ def main():
|
||||
|
||||
nslcd = services.knownservices.nslcd
|
||||
if nslcd.is_installed():
|
||||
save_state(nslcd, statestore)
|
||||
if NUM_VERSION < 40500:
|
||||
save_state(nslcd)
|
||||
else:
|
||||
save_state(nslcd, statestore)
|
||||
|
||||
##########################################################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user