LUA script with os.execute stopped working after update to nas 9.36
search cancel

LUA script with os.execute stopped working after update to nas 9.36

book

Article ID: 273439

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

LUA script stopped working after upgrade to 20.4 CU5.

Environment

Release: 20.4
Component: nas

Cause

nas 9.36 was updated with LUA version 5.4, which changed the way that the function works.

Resolution

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

Additional Information

https://www.lua.org/manual/5.4/manual.html