Skip to content

Commit b077e36

Browse files
authored
Merge pull request #979 from itisFarzin/master
fix: ensure IRIS_USE_SUDO is treated as a boolean
2 parents 6768aad + 67f51b2 commit b077e36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mopidy_iris/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, path):
2525

2626

2727
class IrisSystemThread(Thread):
28-
_USE_SUDO = os.environ.get("IRIS_USE_SUDO", True)
28+
_USE_SUDO = str(os.environ.get("IRIS_USE_SUDO", True)).lower() == "true"
2929

3030
def __init__(self, action, ioloop, callback):
3131
Thread.__init__(self)

0 commit comments

Comments
 (0)