Merge pull request #979 from itisFarzin/master

fix: ensure IRIS_USE_SUDO is treated as a boolean
This commit is contained in:
James Barnsley
2026-04-02 16:25:47 +13:00
committed by GitHub

View File

@ -25,7 +25,7 @@ class IrisSystemPermissionError(IrisSystemError):
class IrisSystemThread(Thread): class IrisSystemThread(Thread):
_USE_SUDO = os.environ.get("IRIS_USE_SUDO", True) _USE_SUDO = str(os.environ.get("IRIS_USE_SUDO", True)).lower() == "true"
def __init__(self, action, ioloop, callback): def __init__(self, action, ioloop, callback):
Thread.__init__(self) Thread.__init__(self)