mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 02:45:21 +00:00
sls/xen/domainconfig.sls: fix config generation state;
This commit is contained in:
parent
aec77c7bd0
commit
411c6b0e52
@ -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']):
|
||||
|
Loading…
Reference in New Issue
Block a user