[PATCH] for_all_repos: Pass failed command as list

0 views
Skip to first unread message

Jan Kiszka

unread,
Feb 4, 2026, 2:00:58 AM (6 days ago) Feb 4
to kas-devel, Jörg Sommer, Felix Moessbauer
From: Jan Kiszka <jan.k...@siemens.com>

The exception printer expects a list or will otherwise generate weird
outputs such as

Command "f a l s e ' ' w i t h ' ' a r g" failed with error 1

Reported-by: Jörg Sommer <joerg....@navimatix.de>
Fixes: 222f07de69a3 ("refactor: port all sys.exit over to kas exceptions")
Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
kas/plugins/for_all_repos.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kas/plugins/for_all_repos.py b/kas/plugins/for_all_repos.py
index 14cdb4b..5ca3553 100644
--- a/kas/plugins/for_all_repos.py
+++ b/kas/plugins/for_all_repos.py
@@ -133,7 +133,7 @@ class ForAllReposCommand(Command):
retcode = subprocess.call(self.command, shell=True, cwd=repo.path,
env=env)
if retcode != 0:
- raise CommandExecError(self.command, retcode)
+ raise CommandExecError([self.command], retcode)


__KAS_PLUGINS__ = [ForAllRepos]
--
2.51.0
Reply all
Reply to author
Forward
0 new messages