mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user