summaryrefslogtreecommitdiff
path: root/vmdb/plugins/luks_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'vmdb/plugins/luks_plugin.py')
-rw-r--r--vmdb/plugins/luks_plugin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmdb/plugins/luks_plugin.py b/vmdb/plugins/luks_plugin.py
index 9d48d99..c5e1bef 100644
--- a/vmdb/plugins/luks_plugin.py
+++ b/vmdb/plugins/luks_plugin.py
@@ -41,6 +41,11 @@ class CryptsetupStepRunner(vmdb.StepRunnerInterface):
underlying = step['cryptsetup']
crypt_name = step['tag']
+ if not isinstance(underlying, str):
+ raise vmdb.NotString('cryptsetup', underlying)
+ if not isinstance(crypt_name, str):
+ raise vmdb.NotString('cryptsetup: tag', crypt_name)
+
state.tmp_key_file = None
key_file = step.get('key-file')
key_cmd = step.get('key-cmd')