mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
pylint unidiomatic-typecheck
This commit is contained in:
parent
b47b55172b
commit
98975cac7b
3 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ class AddRequiredCommands(Task):
|
|||
@classmethod
|
||||
def run(cls, info):
|
||||
from bootstrapvz.common.fs.logicalvolume import LogicalVolume
|
||||
if type(info.volume) is LogicalVolume:
|
||||
if isinstance(info.volume, LogicalVolume):
|
||||
info.host_dependencies['lvcreate'] = 'lvm2'
|
||||
info.host_dependencies['losetup'] = 'mount'
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ class AddRequiredCommands(Task):
|
|||
def run(cls, info):
|
||||
from ..fs.loopbackvolume import LoopbackVolume
|
||||
from ..fs.qemuvolume import QEMUVolume
|
||||
if type(info.volume) is LoopbackVolume:
|
||||
if isinstance(info.volume, LoopbackVolume):
|
||||
info.host_dependencies['losetup'] = 'mount'
|
||||
info.host_dependencies['truncate'] = 'coreutils'
|
||||
if isinstance(info.volume, QEMUVolume):
|
||||
|
|
|
@ -22,7 +22,7 @@ def log_call(command, stdin=None, env=None, shell=False, cwd=None):
|
|||
|
||||
command_log = realpath(command[0]).replace('/', '.')
|
||||
log = logging.getLogger(__name__ + command_log)
|
||||
if type(command) is list:
|
||||
if isinstance(command, list):
|
||||
log.debug('Executing: {command}'.format(command=' '.join(command)))
|
||||
else:
|
||||
log.debug('Executing: {command}'.format(command=command))
|
||||
|
|
Loading…
Add table
Reference in a new issue