Merge pull request #24774 from zefrog/fix-lxc-lvname-param

Fix lxc lvname parameter command
This commit is contained in:
Mike Place 2015-06-18 08:49:06 -06:00
commit 2a4f65f3f7

View File

@ -293,7 +293,7 @@ def cloud_init_interface(name, vm_=None, **kwargs):
Use snapshot when cloning the container source
vgname
if using LVM: vgname
lgname
lvname
if using LVM: lvname
ip
ip for the primary nic
@ -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'):