Skip to content

Commit 08b8f11

Browse files
committed
don't use comprehension
Signed-off-by: Zen <[email protected]>
1 parent 0a374aa commit 08b8f11

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ugrd/fs/mounts.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '4.0.0'
2+
__version__ = '4.0.1'
33

44
from pathlib import Path
55
from zenlib.util import check_dict, pretty_print
@@ -378,7 +378,10 @@ def autodetect_root(self) -> None:
378378

379379
def mount_base(self) -> list[str]:
380380
""" Generates mount commands for the base mounts. """
381-
out = [_to_mount_cmd(self, mount) for mount in self['mounts'].values() if mount.get('base_mount')]
381+
out = []
382+
for mount in self['mounts'].values():
383+
if mount.get('base_mount'):
384+
out += _to_mount_cmd(self, mount)
382385
out += ['mkdir -p /run/vars',
383386
f'einfo "Mounting base mounts, version: {__version__}"']
384387
return out

0 commit comments

Comments
 (0)