You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Code scan] Remote job submission crashes when resources are omitted #133
Problem _set_default_resource(None) creates a local dict but does not return it. Public remote-job script generation paths call _set_default_resource(resources) or _set_default_resource(res) and then immediately dereference the original argument, which is still None. Omitted resources therefore crash instead of using defaults.
Reproduction
Call _make_script(..., resources=None) on CloudMachineJob, or _make_script(..., res=None) on SlurmJob or PBSJob.
Expected result
Default resources should be returned and assigned before any dictionary access, or None should be rejected with a clear validation error.
Activity