diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-08-13 09:27:13 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-08-20 09:20:56 -0400 |
commit | d9c54cd83e8c676e34497fa135786a626d5d1fc7 (patch) | |
tree | 9f0b4defe1bbc50d96cfedabf5d2b591de8eac53 /ipa-client | |
parent | 8780751330871033b13fc8fbb7eb0588baf4417d (diff) | |
download | freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.tar.gz freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.tar.xz freeipa-d9c54cd83e8c676e34497fa135786a626d5d1fc7.zip |
Clean up additional issues discovered with pylint and pychecker
Diffstat (limited to 'ipa-client')
-rw-r--r-- | ipa-client/ipaclient/ntpconf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipa-client/ipaclient/ntpconf.py b/ipa-client/ipaclient/ntpconf.py index e71a909b4..8ea4f6f32 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"]) |