diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/interfaces.py | 2 | ||||
| -rw-r--r-- | src/op_mode/show_techsupport_report.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/interfaces.py b/src/op_mode/interfaces.py index 43546bb82..a77e442f3 100755 --- a/src/op_mode/interfaces.py +++ b/src/op_mode/interfaces.py @@ -39,7 +39,7 @@ def catch_broken_pipe(func): func(*args, **kwargs) except (BrokenPipeError, KeyboardInterrupt): # Flush output to /dev/null and bail out. - os.dup2(os.open(os.devnull, os.O_WRONLY), sys.stdout.fileno()) + os.dup2(os.open(os.devnull, os.O_WRONLY), sys.stdout.fileno()) # pylint: disable = no-member return wrapped # The original implementation of filtered_interfaces has signature: diff --git a/src/op_mode/show_techsupport_report.py b/src/op_mode/show_techsupport_report.py index d75911d50..f22b5054a 100644 --- a/src/op_mode/show_techsupport_report.py +++ b/src/op_mode/show_techsupport_report.py @@ -59,7 +59,7 @@ def execute_command(command: str, header_text: str) -> None: # Flush standard streams; redirect remaining output to devnull # Resolves T5633: Bug #1 and 3 except (BrokenPipeError, KeyboardInterrupt): - os.dup2(os.open(os.devnull, os.O_WRONLY), sys.stdout.fileno()) + os.dup2(os.open(os.devnull, os.O_WRONLY), sys.stdout.fileno()) # pylint: disable = no-member sys.exit(1) except Exception as e: print(f"Error executing command: {command}") |
