Closed lvarin closed 3 months ago
This pull request addresses a robustness issue in the taskmaster component. It modifies the run_executor
function in src/tesk_core/taskmaster.py
to handle the case where spec.template.spec.volumes
is None
by initializing it as an empty list before extending it with volume information.
Files | Changes |
---|---|
src/tesk_core/taskmaster.py |
Added a check to initialize 'volumes' as an empty list if it is None |
If spec.template.spec.volumes is null, use [] instead of None.
This is just to make taskmaster more robust
Summary by Sourcery
Fix the handling of null values in spec.template.spec.volumes by defaulting to an empty list to enhance robustness.
Bug Fixes: