Skip to content

Commit

Permalink
Fix agent.package_manager.poetry_install_extra_args are used in all P…
Browse files Browse the repository at this point in the history
…oetry commands and not just in install (#173)
  • Loading branch information
allegroai committed Nov 1, 2023
1 parent 0131db8 commit ba4fee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clearml_agent/helper/package/poetry_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run(self, *args, **kwargs):
path = path.replace(':'+sys.base_prefix, ':'+sys.real_prefix, 1)
kwargs['env']['PATH'] = path

if self.session and self.session.config:
if self.session and self.session.config and args and args[0] == "install":
extra_args = self.session.config.get("agent.package_manager.poetry_install_extra_args", None)
if extra_args:
args = args + tuple(extra_args)
Expand Down

0 comments on commit ba4fee7

Please sign in to comment.