LUA script stopped working after upgrade to 20.4 CU5.
Release: 20.4
Component: nas
nas 9.36 was updated with LUA version 5.4, which changed the way that the function works.
You will need to change the result line in your script from:
--for nas prior to 9.36
if result == 0 then
to
--for nas 9.36 and above
if result == true then