mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
use new pillar components in status.custom
This commit is contained in:
parent
3abf7ff47e
commit
c042e3097e
@ -82,14 +82,12 @@ def custom():
|
||||
salt '*' status.custom
|
||||
'''
|
||||
ret = {}
|
||||
for opt in __opts__:
|
||||
keys = opt.split('.')
|
||||
if keys[0] != 'status':
|
||||
continue
|
||||
func = '{0}()'.format(keys[1])
|
||||
conf = __salt__['config.dot_vals']('status')
|
||||
for key, val in conf.items():
|
||||
func = '{0}()'.format(key.split('.')[1])
|
||||
vals = eval(func)
|
||||
|
||||
for item in __opts__[opt]:
|
||||
for item in val:
|
||||
ret[item] = vals[item]
|
||||
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user