mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-03-11 23:44:34 +01:00
moved copy into for loop
This commit is contained in:
parent
07a69d5e26
commit
b1170668b2
|
|
@ -73,12 +73,12 @@ def processAlarm(typ, freq, data):
|
|||
logging.debug("[ ALARM ]")
|
||||
# timestamp, to make sure, that all plugins use the same time
|
||||
data['timestamp'] = int(time.time())
|
||||
# copy objects to avoid issues if the objects will be changed by the plugin's during runtime and during asynch/threaded processing
|
||||
dctyp = deepcopy(typ)
|
||||
dcfreq = deepcopy(freq)
|
||||
dcdata = deepcopy(data)
|
||||
# Go to all plugins in pluginList
|
||||
for pluginName, plugin in globalVars.pluginList.items():
|
||||
# copy objects to avoid issues if the objects will be changed by the plugin's during runtime and during asynch/threaded processing
|
||||
dctyp = deepcopy(typ)
|
||||
dcfreq = deepcopy(freq)
|
||||
dcdata = deepcopy(data)
|
||||
# if enabled use RegEx-filter
|
||||
if globalVars.config.getint("BOSWatch","useRegExFilter"):
|
||||
from includes import regexFilter
|
||||
|
|
|
|||
Loading…
Reference in a new issue