From c18b7771415993e20f92b1ccc17fa3d891d17179 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Fri, 26 Apr 2019 12:50:34 +0200
Subject: [PATCH] ipaclient_setup_ntp: Fixed NTP config for FreeIPA versions
 without sync_time

The old name ntpconf has been still used in one place of the NTP
configuration for FreeIPA versions that do not provide the sync_time
function.

Fixes: #76 (Ansible Configure NTP Task)
---
 roles/ipaclient/library/ipaclient_setup_ntp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/ipaclient/library/ipaclient_setup_ntp.py b/roles/ipaclient/library/ipaclient_setup_ntp.py
index 9f941942..6fb6b18e 100644
--- a/roles/ipaclient/library/ipaclient_setup_ntp.py
+++ b/roles/ipaclient/library/ipaclient_setup_ntp.py
@@ -154,7 +154,7 @@ def main():
                 ntp_servers = options.ntp_servers
 
             for s in ntp_servers:
-                synced_ntp = ntpconf.synconce_ntp(s, options.debug)
+                synced_ntp = timeconf.synconce_ntp(s, options.debug)
                 if synced_ntp:
                     break
 
-- 
GitLab