From 8780751330871033b13fc8fbb7eb0588baf4417d Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 11 Aug 2009 17:08:09 -0400 Subject: Clean up some problems discovered with pylint and pychecker Much of this is formatting to make pylint happy but it also fixes some real bugs. --- ipaserver/install/bindinstance.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ipaserver/install/bindinstance.py') diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index cadab10e..f5a70461 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -17,12 +17,9 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -import string import tempfile -import shutil import os import pwd -import socket import logging import installutils @@ -73,7 +70,7 @@ class BindInstance(service.Service): tmp = ip_address.split(".") tmp.reverse() - + self.reverse_host = tmp.pop(0) self.reverse_subnet = ".".join(tmp) @@ -232,7 +229,6 @@ class BindInstance(service.Service): def uninstall(self): running = self.restore_state("running") enabled = self.restore_state("enabled") - domain = self.restore_state("domain") if not running is None: self.stop() -- cgit