diff options
-rw-r--r-- | vmdb/plugins/fstab_plugin.py | 4 |
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: |