Skip to content

Commit 0766da2

Browse files
committed
Fix lint errors
1 parent b569575 commit 0766da2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lisa/tools/fstab.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def add_entry(
164164
lsblk = self.node.tools[Lsblk]
165165
try:
166166
# Try to find partition first
167-
partition = lsblk.find_partition_by_mountpoint(mount_point, force_run=True)
167+
partition = lsblk.find_partition_by_mountpoint(
168+
mount_point, force_run=True
169+
)
168170
device = partition.device_name
169171
except LisaException:
170172
try:
@@ -173,8 +175,8 @@ def add_entry(
173175
device = disk.device_name
174176
except LisaException:
175177
raise LisaException(
176-
f"Could not auto-detect device for mount point {mount_point}. "
177-
"Please provide device parameter."
178+
"Could not auto-detect device for mount point "
179+
f"{mount_point}. Please provide device parameter."
178180
)
179181
# Convert to UUID if requested
180182
device_str = device
@@ -190,11 +192,11 @@ def add_entry(
190192
device_str = f"UUID={partition_info.uuid}"
191193
self._log.debug(f"Using UUID for device {device}: {device_str}")
192194
else:
193-
self._log.warning(
195+
self._log.info(
194196
f"Could not get UUID for {device}, using device name"
195197
)
196198
except LisaException as e:
197-
self._log.warning(
199+
self._log.info(
198200
f"Could not get UUID for {device}: {e}. Using device name"
199201
)
200202

0 commit comments

Comments
 (0)