mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Bugfixed: NO_PURGE now works on all diff2 providers (#2084)
This commit is contained in:
@ -45,6 +45,11 @@ func ExecuteJavascript(file string, devMode bool, variables map[string]string) (
|
||||
// Record the directory path leading up to this file.
|
||||
currentDirectory = filepath.Dir(file)
|
||||
|
||||
return ExecuteJavascriptString(script, devMode, variables)
|
||||
}
|
||||
|
||||
func ExecuteJavascriptString(script []byte, devMode bool, variables map[string]string) (*models.DNSConfig, error) {
|
||||
|
||||
vm := otto.New()
|
||||
l := loop.New(vm)
|
||||
|
||||
|
Reference in New Issue
Block a user