Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perun-proxy-utils
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
Perun
Perun ProxyIdP
perun-proxy-utils
Commits
987ab12a
Verified
Commit
987ab12a
authored
1 year ago
by
Jan Pavlíček
Browse files
Options
Downloads
Patches
Plain Diff
fix: containers argument format in check_docker probe
parent
60364d4e
No related branches found
No related tags found
1 merge request
!37
fix: containers argument format in check_docker probe
Pipeline
#305358
passed
1 year ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
perun/proxy/utils/nagios/check_dockers.py
+3
-1
3 additions, 1 deletion
perun/proxy/utils/nagios/check_dockers.py
with
3 additions
and
1 deletion
perun/proxy/utils/nagios/check_dockers.py
+
3
−
1
View file @
987ab12a
...
@@ -29,7 +29,8 @@ def get_args():
...
@@ -29,7 +29,8 @@ def get_args():
"
-c
"
,
"
-c
"
,
"
--containers
"
,
"
--containers
"
,
required
=
True
,
required
=
True
,
help
=
'
list of container names to check in following format:
"
[cont1, cont2]
"'
,
help
=
"
list of container names to check in following
"
"
format:
'
[
'
cont1
'
,
'
cont2
'
]
'"
,
)
)
return
parser
.
parse_args
()
return
parser
.
parse_args
()
...
@@ -38,6 +39,7 @@ def get_args():
...
@@ -38,6 +39,7 @@ def get_args():
def
main
():
def
main
():
args
=
get_args
()
args
=
get_args
()
containers_list
=
args
.
containers
.
replace
(
"
"
,
""
).
strip
(
"
[]
"
).
split
(
"
,
"
)
containers_list
=
args
.
containers
.
replace
(
"
"
,
""
).
strip
(
"
[]
"
).
split
(
"
,
"
)
containers_list
=
[
container_name
.
strip
(
"'"
)
for
container_name
in
containers_list
]
containers_status
=
get_docker_states
(
containers_list
)
containers_status
=
get_docker_states
(
containers_list
)
status
=
0
status
=
0
...
...
This diff is collapsed.
Click to expand it.
Jednotné přihlášení test
@9008807
mentioned in commit
6ed25381
·
1 year ago
mentioned in commit
6ed25381
mentioned in commit 6ed25381068d01d528ad0554e16dc6535f104a73
Toggle commit list
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