Hi,
this is because ~= operation now returns array of capture groups instead of boolean value. It works as expected in "if" statement and other places where logical expression is expected, but "return" statement just returns array, which is ignored by poller code. This is bug in a poller which we will fix. As a workaround you can use expression like this:
return ($node->sysDescription ~= "CSS") ? true : false;
Best regards,
Victor
this is because ~= operation now returns array of capture groups instead of boolean value. It works as expected in "if" statement and other places where logical expression is expected, but "return" statement just returns array, which is ignored by poller code. This is bug in a poller which we will fix. As a workaround you can use expression like this:
return ($node->sysDescription ~= "CSS") ? true : false;
Best regards,
Victor