Fix xen domain config template

This commit is contained in:
Alexey Pronin 2019-11-20 23:15:46 +03:00
parent c3041180a5
commit 7589cc59c1
No known key found for this signature in database
GPG Key ID: 1FEFC4A6AAD7535A

View File

@ -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: