From d9c54cd83e8c676e34497fa135786a626d5d1fc7 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 13 Aug 2009 09:27:13 -0400 Subject: Clean up additional issues discovered with pylint and pychecker --- ipa-client/ipaclient/ntpconf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipa-client/ipaclient') diff --git a/ipa-client/ipaclient/ntpconf.py b/ipa-client/ipaclient/ntpconf.py index e71a909b..8ea4f6f3 100644 --- a/ipa-client/ipaclient/ntpconf.py +++ b/ipa-client/ipaclient/ntpconf.py @@ -17,7 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -from ipapython.ipautil import * +from ipapython import ipautil import shutil ntp_conf = """# Permit time synchronization with our time source, but do not @@ -84,7 +84,7 @@ def config_ntp(server_fqdn, fstore = None): sub_dict = { } sub_dict["SERVER"] = server_fqdn - nc = template_str(ntp_conf, sub_dict) + nc = ipautil.template_str(ntp_conf, sub_dict) if fstore: fstore.backup_file("/etc/ntp.conf") @@ -105,7 +105,7 @@ def config_ntp(server_fqdn, fstore = None): fd.close() # Set the ntpd to start on boot - run(["/sbin/chkconfig", "ntpd", "on"]) + ipautil.run(["/sbin/chkconfig", "ntpd", "on"]) # Restart ntpd - run(["/sbin/service", "ntpd", "restart"]) + ipautil.run(["/sbin/service", "ntpd", "restart"]) -- cgit