diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-12-16 08:30:20 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-12-16 08:30:20 +0200 |
commit | 66f9f561fe82820e4e7d6baba509c918f4788ecb (patch) | |
tree | 2f2c7cbddec369fc5658615332fc24b8cf7135cb | |
parent | 65228997d85a889c821772035724f5547fc12464 (diff) | |
download | vmdb2-66f9f561fe82820e4e7d6baba509c918f4788ecb.tar.gz |
Refactor: reformat to fit within 80 columns
-rw-r--r-- | vmdb/plugins/fstab_plugin.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vmdb/plugins/fstab_plugin.py b/vmdb/plugins/fstab_plugin.py index da985bc..999d3a4 100644 --- a/vmdb/plugins/fstab_plugin.py +++ b/vmdb/plugins/fstab_plugin.py @@ -43,7 +43,8 @@ class FstabStepRunner(vmdb.StepRunnerInterface): device = state.tags.get_dev(tag) mount_point = state.tags.get_target_mount_point(tag) fstype = state.tags.get_fstype(tag) - output = vmdb.runcmd(['blkid', '-c', '/dev/null', '-o', 'value', '-s', 'UUID', device]) + output = vmdb.runcmd([ + 'blkid', '-c', '/dev/null', '-o', 'value', '-s', 'UUID', device]) if output: uuid = output.decode().strip() filesystems.append({ @@ -52,7 +53,9 @@ class FstabStepRunner(vmdb.StepRunnerInterface): 'fstype': fstype, }) else: - raise Exception('Unknown UUID for device {} (to be mounted on {})'.format(device, mount_point)) + raise Exception( + 'Unknown UUID for device {} (to be mounted on {})'.format( + device, mount_point)) fstab_path = os.path.join(chroot, 'etc/fstab') line = "UUID={uuid} {mount_point} {fstype} errors=remount-ro 0 1\n" |