mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
lxc: get networkprofile from saltcloud
Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
parent
47acb2e159
commit
7a80370da9
1 changed files with 2 additions and 1 deletions
|
@ -405,7 +405,8 @@ def cloud_init_interface(name, vm_=None, **kwargs):
|
|||
lxc_init_interface['users'] = users
|
||||
lxc_init_interface['password'] = password
|
||||
lxc_init_interface['password_encrypted'] = password_encrypted
|
||||
lxc_init_interface['network_profile'] = DEFAULT_NIC
|
||||
lxc_init_interface.setdefault('network_profile',
|
||||
vm_.get('network_profile', _marker))
|
||||
for i in ['cpu', 'cpuset', 'cpushare']:
|
||||
if vm_.get(i, None):
|
||||
lxc_init_interface[i] = vm_[i]
|
||||
|
|
Loading…
Add table
Reference in a new issue