From 5bcbe1df3719eab06eebd930bef0077c34fc5b38 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 4 Sep 2012 05:15:31 -0400 Subject: Run ntpdate in verbose mode, not debug (i.e. no-op) mode Remove the debug argument to synconce_ntp since we always want the logs to be verbose. https://fedorahosted.org/freeipa/ticket/3048 --- ipa-client/ipaclient/ntpconf.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ipa-client/ipaclient/ntpconf.py') diff --git a/ipa-client/ipaclient/ntpconf.py b/ipa-client/ipaclient/ntpconf.py index aa9261cb..6e417314 100644 --- a/ipa-client/ipaclient/ntpconf.py +++ b/ipa-client/ipaclient/ntpconf.py @@ -133,7 +133,8 @@ def config_ntp(server_fqdn, fstore = None, sysstore = None): # Restart ntpd ipaservices.knownservices.ntpd.restart() -def synconce_ntp(server_fqdn, debug=False): + +def synconce_ntp(server_fqdn): """ Syncs time with specified server using ntpdate. Primarily designed to be used before Kerberos setup @@ -145,11 +146,8 @@ def synconce_ntp(server_fqdn, debug=False): if os.path.exists(ntpdate): # retry several times -- logic follows /etc/init.d/ntpdate # implementation - cmd = [ntpdate, "-U", "ntp", "-s", "-b"] - if debug: - cmd.append('-d') - cmd.append(server_fqdn) - for retry in range(0,3): + cmd = [ntpdate, "-U", "ntp", "-s", "-b", "-v", server_fqdn] + for retry in range(0, 3): try: ipautil.run(cmd) return True -- cgit