diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-01 20:00:55 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-01 20:00:55 +0200 |
commit | b63079bb42c811a903108fcc944109b34f90f074 (patch) | |
tree | 8883b44ee53218b8219f4de871361abf60ac1b81 | |
parent | c20b3c938a3599c16b803ef460269d9fea72df74 (diff) | |
download | vmdb2-b63079bb42c811a903108fcc944109b34f90f074.tar.gz |
get dm for crypttab
Sponsored-by: author
-rw-r--r-- | vmdb/plugins/fstab_plugin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vmdb/plugins/fstab_plugin.py b/vmdb/plugins/fstab_plugin.py index 0149860..67b37ab 100644 --- a/vmdb/plugins/fstab_plugin.py +++ b/vmdb/plugins/fstab_plugin.py @@ -41,6 +41,8 @@ class FstabStepRunner(vmdb.StepRunnerInterface): if mount_point is not None: fstype = state.tags.get_fstype(tag) uuid = state.tags.get_uuid(tag) + dm = state.tags.get_dm(tag) + if uuid is None: raise Exception( "Unknown UUID for device {} (to be mounted on {})".format( @@ -51,6 +53,7 @@ class FstabStepRunner(vmdb.StepRunnerInterface): filesystems.append( { "uuid": uuid, + "dm": dm, "mount_point": mount_point, "fstype": fstype, } |