mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 18:35:18 +00:00
Fix xen domain config template
This commit is contained in:
parent
c3041180a5
commit
7589cc59c1
@ -57,7 +57,12 @@ for guest in __salt__['pillar.get']('xen:guests', []):
|
||||
if 'nomigrate' in guest:
|
||||
capkv(content, 'nomigrate', guest['nomigrate'])
|
||||
|
||||
capkv(content, 'kernel', guest['kernel'])
|
||||
if 'bootloader' in guest:
|
||||
capkv(content, 'bootloader', guest['bootloader'])
|
||||
if 'kernel' in guest:
|
||||
capkv(content, 'kernel', guest['kernel'])
|
||||
elif 'bootloader' not in guest:
|
||||
raise Exception('Neither kernel nor the bootloader are set')
|
||||
if 'ramdisk' in guest:
|
||||
capkv(content, 'ramdisk', guest['ramdisk'])
|
||||
if 'cmdline' in guest:
|
||||
|
Loading…
Reference in New Issue
Block a user