mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Code cleanup
This commit is contained in:
@@ -4160,21 +4160,6 @@ def combine_plugin_objects(old, new):
|
||||
# return the new object, with some of the old values
|
||||
return new
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Replace {wildcars} with parameters
|
||||
def resolve_wildcards(command, params):
|
||||
|
||||
mylog('debug', [' [Plugins]: Pre-Resolved CMD: ', command])
|
||||
|
||||
for param in params:
|
||||
mylog('debug', [' [Plugins]: key : {', param[0], '}'])
|
||||
mylog('debug', [' [Plugins]: resolved: ', param[1]])
|
||||
command = command.replace('{' + param[0] + '}', param[1])
|
||||
|
||||
mylog('debug', [' [Plugins]: Resolved CMD: ', command])
|
||||
|
||||
return command
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Replace {wildcars} with parameters
|
||||
def resolve_wildcards_arr(commandArr, params):
|
||||
|
||||
Reference in New Issue
Block a user