mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Add missing saltenv
support. Thanks @hvnsweeting!
This commit is contained in:
parent
9ba91b49cf
commit
1f89f7f24d
@ -520,6 +520,7 @@ def init(name,
|
||||
hypervisor=VIRT_DEFAULT_HYPER,
|
||||
start=True, # pylint: disable=redefined-outer-name
|
||||
disk='default',
|
||||
saltenv='base',
|
||||
**kwargs):
|
||||
'''
|
||||
Initialize a new vm
|
||||
@ -563,7 +564,7 @@ def init(name,
|
||||
disk_file_name
|
||||
)
|
||||
img_dir = os.path.dirname(img_dest)
|
||||
sfn = __salt__['cp.cache_file'](image)
|
||||
sfn = __salt__['cp.cache_file'](image, saltenv)
|
||||
if not os.path.isdir(img_dir):
|
||||
os.makedirs(img_dir)
|
||||
salt.utils.copyfile(sfn, img_dest)
|
||||
|
Loading…
Reference in New Issue
Block a user