mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #24774 from zefrog/fix-lxc-lvname-param
Fix lxc lvname parameter command
This commit is contained in:
commit
2a4f65f3f7
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user