diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-09-02 15:16:21 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-09-02 15:16:21 +0300 |
commit | ec75f369cbf47ea9ddf6dc8f5b0f07383dd23643 (patch) | |
tree | e67012f56aaf1657c85c5cd64498e4dd75dd49c7 | |
parent | ed3e227625e34fbe7f045e2eb89a7258986f670e (diff) | |
download | vmdb2-ec75f369cbf47ea9ddf6dc8f5b0f07383dd23643.tar.gz |
Fix: add missing variable
-rw-r--r-- | vmdb/plugins/lvm2_plugin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vmdb/plugins/lvm2_plugin.py b/vmdb/plugins/lvm2_plugin.py index ec67834..961b804 100644 --- a/vmdb/plugins/lvm2_plugin.py +++ b/vmdb/plugins/lvm2_plugin.py @@ -45,6 +45,7 @@ class VgcreateStepRunner(vmdb.StepRunnerInterface): vmdb.runcmd(['vgcreate', vgname] + physical) def teardown(self, step, settings, state): + vgname = self.get_vg(step) vmdb.runcmd(['vgchange', '-an', vgname]) def get_vg(self, step): |