Skip to content

Commit 2e75cab

Browse files
committed
Fix handling of PYTHON_RUNNER_DROPPED_CAPABILITIES
1 parent 61140fd commit 2e75cab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

starter/runner.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@
4949
TMPFS_MOUNT_SIZE_IN_BYTES = os.environ.get(
5050
"PYTHON_RUNNER_TMPFS_MOUNT_SIZE_IN_BYTES", "104857600"
5151
)
52-
DROPPED_CAPABILITIES = os.environ.get("PYTHON_RUNNER_DROPPED_CAPABILITIES", "").split(
53-
","
54-
)
52+
DROPPED_CAPABILITIES = [
53+
cap for cap in os.environ.get("PYTHON_RUNNER_DROPPED_CAPABILITIES", "").split(",")
54+
if cap.strip()
55+
]
5556
NO_NEW_PRIVILEGES = (
5657
os.environ.get("PYTHON_RUNNER_NO_NEW_PRIVILEGES", "false").lower() == "true"
5758
)

0 commit comments

Comments
 (0)