Skip to content

Commit

Permalink
Correct processing when build-args is empty (none). (mlcommons#356)
Browse files Browse the repository at this point in the history
In certain scenarios when singularity runner is used, setting `build_args` to empty string (-Psingularity.build_args="") results in error (accessign variable that's None). This commit fixes it.
  • Loading branch information
sergey-serebryakov authored Feb 15, 2024
1 parent 723ef06 commit 9713527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def configure(self) -> None:
recipe=s_cfg.build_file,
image_dir=s_cfg.image_dir,
image_name=s_cfg.image,
build_args=s_cfg.build_args,
build_args=s_cfg.build_args or "",
)

def run(self) -> None:
Expand Down

0 comments on commit 9713527

Please sign in to comment.