Skip to content

Commit

Permalink
coding style for probe
Browse files Browse the repository at this point in the history
Co-authored-by: Ronan Abhamon <[email protected]>
Signed-off-by: Damien Thenot <[email protected]>
  • Loading branch information
Nambrok and Wescoeur committed Mar 18, 2024
1 parent ef6c307 commit a47e41a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/LargeBlockSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ def delete(self, sr_uuid):
@deviceCheck
def probe(self):
# We override EXTSR.probe because it uses EXT_PREFIX in this call
return lvutil.srlist_toxml(lvutil.scan_srlist(LARGEBLOCK_PREFIX, self.dconf['device']),
LARGEBLOCK_PREFIX)
return lvutil.srlist_toxml(
lvutil.scan_srlist(LARGEBLOCK_PREFIX, self.dconf['device']),
LARGEBLOCK_PREFIX
)

def _create_loopdev(self, dev, new_path):
cmd = ["losetup", "-f", "-v", "--show", "--sector-size", str(self.LOOP_SECTOR_SIZE), dev]
Expand Down

0 comments on commit a47e41a

Please sign in to comment.