From e4e451d9958c0eda064242657baffee4e5f37010 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Fri, 4 Oct 2024 14:48:36 +0200 Subject: [PATCH] allow to overwrite real_system_username per destination --- lib/galaxy/jobs/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index 3f8e33321ac2..7ed50dfc7464 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -2519,7 +2519,9 @@ def reclaim_ownership(self): def user_system_pwent(self): if self.__user_system_pwent is None: job = self.get_job() - self.__user_system_pwent = job.user.system_user_pwent(self.app.config.real_system_username) + self.__user_system_pwent = job.user.system_user_pwent( + self.get_destination_configuration("real_system_username", None) + ) return self.__user_system_pwent @property