Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cse138-assignment-4-test-suite
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
Container 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
Korben Tompkin
cse138-assignment-4-test-suite
Commits
1b1f5662
Commit
1b1f5662
authored
1 month ago
by
zphrs
Browse files
Options
Downloads
Patches
Plain Diff
added back accidentally deleted functions
parent
dc5261e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/containers.py
+10
-1
10 additions, 1 deletion
utils/containers.py
with
10 additions
and
1 deletion
utils/containers.py
+
10
−
1
View file @
1b1f5662
...
...
@@ -114,6 +114,14 @@ class ClusterConductor:
for
container
in
containers
:
if
container
and
container_regex
.
match
(
container
):
self
.
_dump_container_logs
(
dir
,
container
)
def
get_view
(
self
)
->
str
:
return
{
"
address
"
:
f
"
{
self
.
ip
}
:
{
self
.
port
}
"
,
"
id
"
:
self
.
index
}
def
get_nodes
(
self
):
return
self
.
nodes
def
get_node
(
self
,
index
):
return
self
.
nodes
[
index
]
def
_dump_container_logs
(
self
,
dir
,
name
:
str
)
->
None
:
log_file
=
os
.
path
.
join
(
dir
,
f
"
{
name
}
.log
"
)
...
...
@@ -503,7 +511,8 @@ class ClusterConductor:
view_changed
=
True
if
view_changed
and
hasattr
(
self
,
"
_parent
"
):
self
.
_parent
.
broadcast_view
(
self
.
get_full_view
())
def
get_node
(
self
,
index
):
return
self
.
nodes
[
index
]
def
get_full_view
(
self
):
view
=
[]
for
node
in
self
.
nodes
:
...
...
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