summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-07-24 16:28:51 +0200
committerGitHub <noreply@github.com>2025-07-24 16:28:51 +0200
commitfca865d3e11258df1134f7d537875d4a1f574283 (patch)
tree8d865978c5b7109b7e8b2d1364eb6436156be56a /src
parente1cf4d11256125798111f3e3bb91245ee05896a7 (diff)
parent50ecd71cb7f8ce96374d805b1be509a7ba6d4393 (diff)
downloadvyos-1x-fca865d3e11258df1134f7d537875d4a1f574283.tar.gz
vyos-1x-fca865d3e11258df1134f7d537875d4a1f574283.zip
Merge pull request #4620 from vyos/lint-fix
pylint: T7648: disable some linter-checks hit by GitHub action pipeline
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/interfaces.py2
-rw-r--r--src/op_mode/show_techsupport_report.py2
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}")