Fixed bug in lxc module: lvname using wrong parameter in cmd

This commit is contained in:
Maxime Douailin 2015-06-18 10:18:14 +02:00
parent 5fe4de8f62
commit 283d86ec12

View File

@ -1890,7 +1890,7 @@ def create(name,
cmd += ' -B {0}'.format(backing)
if backing in ('lvm',):
if lvname:
cmd += ' --lvname {0}'.format(vgname)
cmd += ' --lvname {0}'.format(lvname)
if vgname:
cmd += ' --vgname {0}'.format(vgname)
if backing not in ('dir', 'overlayfs'):