summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-09-02 15:16:21 +0300
committerLars Wirzenius <liw@liw.fi>2018-09-02 15:16:21 +0300
commitec75f369cbf47ea9ddf6dc8f5b0f07383dd23643 (patch)
treee67012f56aaf1657c85c5cd64498e4dd75dd49c7
parented3e227625e34fbe7f045e2eb89a7258986f670e (diff)
downloadvmdb2-ec75f369cbf47ea9ddf6dc8f5b0f07383dd23643.tar.gz
Fix: add missing variable
-rw-r--r--vmdb/plugins/lvm2_plugin.py1
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):