Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
My Nagios Plugin Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
My Nagios Plugin Wrapper
Commits
828d2fa6
Commit
828d2fa6
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Forgot the f in f-strings, corrected.
parent
e682d49e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#1998
passed
3 years ago
Stage: .pre
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mnpw/nagios.py
+2
-2
2 additions, 2 deletions
mnpw/nagios.py
with
2 additions
and
2 deletions
mnpw/nagios.py
+
2
−
2
View file @
828d2fa6
...
...
@@ -165,9 +165,9 @@ class Check:
self
.
ExitCode
=
proc
.
returncode
logging
.
info
(
f
"
Exit code is
{
self
.
ExitCode
}
.
"
)
self
.
_stdout
=
proc
.
stdout
logging
.
info
(
"
stdout is {self._stdout}.
"
)
logging
.
info
(
f
"
stdout is
{
self
.
_stdout
}
.
"
)
self
.
stderr
=
proc
.
stderr
logging
.
info
(
"
stderr is {self.stderr}.
"
)
logging
.
info
(
f
"
stderr is
{
self
.
stderr
}
.
"
)
if
self
.
ExitCode
in
list
(
NagiosCode
):
self
.
_parse_output
()
logging
.
info
(
f
"
Output is
{
self
.
Output
}
.
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment