Skip to content

Commit

Permalink
Merge remote-tracking branch 'tyll/lgtm.yml' into non-destructive
Browse files Browse the repository at this point in the history
  • Loading branch information
pcahyna committed Oct 31, 2019
2 parents d937f5b + d15d14f commit de7516a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .lgtm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
extraction:
python:
python_setup:
version: 2
4 changes: 2 additions & 2 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class BlivetAnsibleError(Exception):
pass


class BlivetVolume:
class BlivetVolume(object):
def __init__(self, blivet_obj, volume, bpool=None):
self._blivet = blivet_obj
self._volume = volume
Expand Down Expand Up @@ -369,7 +369,7 @@ def _get_blivet_volume(blivet_obj, volume, bpool=None):
return _BLIVET_VOLUME_TYPES[volume_type](blivet_obj, volume, bpool=bpool)


class BlivetPool:
class BlivetPool(object):
def __init__(self, blivet_obj, pool):
self._blivet = blivet_obj
self._pool = pool
Expand Down
10 changes: 2 additions & 8 deletions library/lvm_gensym.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,10 @@
RETURN = '''
vg_name:
description: The default generated name for an unspecified volume group
type: str
'''

RETURN = '''
vg_name:
description: The default generated name for an unspecified volume group
type: str
type: str
lv_name:
description: The default generated name for an unspecified logical volume
description: The default generated name for an unspecified logical volume
type: str
'''

Expand Down
2 changes: 1 addition & 1 deletion library/resolve_blockdev.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _get_dm_name_from_kernel_dev(kdev):
def _get_md_name_from_kernel_dev(kdev):
minor = os.minor(os.stat(kdev).st_rdev)
return next(name for name in os.listdir(DEV_MD)
if os.minor(os.stat("%/%s" % (DEV_MD, name).st_rdev) == minor))
if os.minor(os.stat("%s/%s" % (DEV_MD, name)).st_rdev) == minor)


def canonical_device(device):
Expand Down

0 comments on commit de7516a

Please sign in to comment.