Pylint: remove unused variables from installers and scripts

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Basti
2016-10-04 16:54:44 +02:00
parent ac94d32c4f
commit d937588146
30 changed files with 111 additions and 234 deletions

View File

@@ -51,8 +51,6 @@ try:
except ImportError:
adtrustinstance = None
# pylint: disable=unused-variable
def recursive_chown(path, uid, gid):
'''
Change ownership of all files and directories in a path.
@@ -523,7 +521,6 @@ class Restore(admintool.AdminTool):
'''
self.log.info('Restoring from %s in %s' % (backend, instance))
now = time.localtime()
cn = time.strftime('import_%Y_%m_%d_%H_%M_%S')
dn = DN(('cn', cn), ('cn', 'import'), ('cn', 'tasks'), ('cn', 'config'))
@@ -746,7 +743,6 @@ class Restore(admintool.AdminTool):
self.log.info('Decrypting %s' % filename)
filename = decrypt_file(self.dir, filename, keyring)
cwd = os.getcwd()
os.chdir(self.dir)
args = ['tar',