Skip to content

Commit

Permalink
fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed May 10, 2024
1 parent 3322e9e commit 078c216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sc_runner/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ def defaults(defaults, opt_name):
def default(defaults, opt_name):
"""Return default value from `defaults` for the `opt_name` as a Python object(dict)."""
envvar, def_val = defaults[opt_name]
return json.loads(os.environ.get(envvar, "null")) or defaults[opt_name]
return json.loads(os.environ.get(envvar, "null")) or def_val

0 comments on commit 078c216

Please sign in to comment.