summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-01 20:09:48 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-01 20:09:48 +0200
commit32ec2c4bf5a0406febc476feb530cf3c7a5075ab (patch)
tree2e57f15909de8fbf0f10e7d8470d9a9839aa9324
parent8a75acdc429d94959dc02bbe5852315f32f4dc82 (diff)
downloadvmdb2-32ec2c4bf5a0406febc476feb530cf3c7a5075ab.tar.gz
fix crypttab selection
Sponsored-by: author
-rw-r--r--vmdb/plugins/fstab_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vmdb/plugins/fstab_plugin.py b/vmdb/plugins/fstab_plugin.py
index 70656cd..dfba1b1 100644
--- a/vmdb/plugins/fstab_plugin.py
+++ b/vmdb/plugins/fstab_plugin.py
@@ -65,7 +65,9 @@ class FstabStepRunner(vmdb.StepRunnerInterface):
for entry in filesystems:
fstab.write(line.format(**entry))
- entries = [e for e in filesystems if "uuid" in e and "dm" in e]
+ entries = [
+ e for e in filesystems if e["uuid"] is not None and e["dm"] is not None
+ ]
vmdb.progress(f"filesystems: {filesystems}")
vmdb.progress(f"crypttab entries: {entries}")
if entries: