From 32ec2c4bf5a0406febc476feb530cf3c7a5075ab Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 1 Jan 2022 20:09:48 +0200 Subject: fix crypttab selection Sponsored-by: author --- vmdb/plugins/fstab_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1