mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
don't use _|- here
This commit is contained in:
parent
b563e227ca
commit
8db69752e4
@ -18,14 +18,13 @@ def set_(name, add, match):
|
||||
'changes': {},
|
||||
'comment': '',
|
||||
'result': True}
|
||||
reg_key = '{0}_|-set'.format(name)
|
||||
if reg_key not in __reg__:
|
||||
__reg__[reg_key] = set()
|
||||
if name not in __reg__:
|
||||
__reg__[name] = set()
|
||||
for event in __events__:
|
||||
if fnmatch.fnmatch(event['tag'], match):
|
||||
val = event['data'].get(add)
|
||||
if val is None:
|
||||
val = 'None'
|
||||
ret['changes'][add] = val
|
||||
__reg__[reg_key].add(val)
|
||||
__reg__[name].add(val)
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user