Hi,
I have a script execution error since upgrading to 3.8-366. Is it a problem with the script?
Script (Hook::ConfigurationPoll) execution error: Error 14 in line 2: Function or operation argument is not an object
Thanks in advance.
I have a script execution error since upgrading to 3.8-366. Is it a problem with the script?
Script (Hook::ConfigurationPoll) execution error: Error 14 in line 2: Function or operation argument is not an object
Code Select
// remove dynamic interfaces on Mikrotik, e.g. VPN users
if ($node->driver == "MIKROTIK")
{
intArray = GetNodeInterfaces($node);
foreach (int : intArray)
{
// if the interface is dynamic
if ((left(int->name, 1) == "<") && (right(int->name, 1) == ">"))
{
// delete the interface
DeleteObject(int);
}
}
}
Thanks in advance.