e8307f6fb0
- Add external links to the text version of the generated report file - Resolves: RHEL-21451
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From 1cdd1898ba2cee253e6557b846dc54ca77a862f2 Mon Sep 17 00:00:00 2001
|
|
From: Toshio Kuratomi <a.badger@gmail.com>
|
|
Date: Wed, 10 Jan 2024 18:32:29 -0800
|
|
Subject: [PATCH 5/5] Fix stdlib.run() documentation
|
|
|
|
CalledProcessError() is raised on non-zero exit when checked==True, not when checked==False.
|
|
---
|
|
leapp/libraries/stdlib/__init__.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/leapp/libraries/stdlib/__init__.py b/leapp/libraries/stdlib/__init__.py
|
|
index 77a2f7a..89e59b2 100644
|
|
--- a/leapp/libraries/stdlib/__init__.py
|
|
+++ b/leapp/libraries/stdlib/__init__.py
|
|
@@ -168,7 +168,7 @@ def run(args, split=False, callback_raw=_console_logging_handler, callback_lineb
|
|
:return: {'stdout' : stdout, 'stderr': stderr, 'signal': signal, 'exit_code': exit_code, 'pid': pid}
|
|
:rtype: dict
|
|
:raises: OSError if an executable is missing or has wrong permissions
|
|
- :raises: CalledProcessError if the cmd has non-zero exit code and `checked` is False
|
|
+ :raises: CalledProcessError if the cmd has non-zero exit code and `checked` is True
|
|
:raises: TypeError if any input parameters have an invalid type
|
|
:raises: valueError if any of input parameters have an invalid value
|
|
"""
|
|
--
|
|
2.43.0
|
|
|