sls/xen/domainconfig.sls: fix config generation state;

This commit is contained in:
Antsiferov Grigory 2017-02-07 19:12:16 +03:00
parent aec77c7bd0
commit 411c6b0e52

View File

@ -27,7 +27,7 @@ for guest in __salt__['pillar.get']('xen:guests', []):
capkv(content, 'extra', guest['extra'] if 'extra' in guest else 'raid=noautodetect quiet panic=30')
for k,v in guest.get('extra-config', []):
capkv(content, k, v)
state('/etc/xen/domains/'+ name + '.cfg').file.managed(contents=content.join('\n'))
state('/etc/xen/domains/'+ name + '.cfg').file.managed(contents='\n'.join(content))
if ('pinning' in guest
and 'auto' in guest['pinning']
and guest['pinning']['auto'] == __grains__['id']):