Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Paas CI
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
INFN Cloud
Paas CI
Commits
0751a882
Commit
0751a882
authored
11 months ago
by
Gioacchino Vino
Browse files
Options
Downloads
Patches
Plain Diff
Reviewed code
parent
a8fee7b5
No related branches found
Branches containing commit
No related tags found
1 merge request
!143
Debug paas ci
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/gvm_library.py
+7
-9
7 additions, 9 deletions
files/gvm_library.py
with
7 additions
and
9 deletions
files/gvm_library.py
+
7
−
9
View file @
0751a882
...
...
@@ -141,8 +141,8 @@ class PortList:
'
in_use
'
:
self
.
in_use
}
return
pretty_json
(
d
)
def
__del__
(
self
):
self
.
delete
()
#
def __del__(self):
#
self.delete()
def
delete
(
self
):
logging
.
debug
(
f
"
Deletion port_list
{
self
.
name
}
"
)
...
...
@@ -253,8 +253,8 @@ class Target:
'
host
'
:
self
.
host
}
return
pretty_json
(
d
)
def
__del__
(
self
):
self
.
delete
()
#
def __del__(self):
#
self.delete()
def
delete
(
self
):
logging
.
debug
(
f
"
Deletion target
{
self
.
name
}
"
)
...
...
@@ -408,8 +408,8 @@ class Task:
else
:
logging
.
error
(
f
"
ERROR during the task deletion
{
status
}
:
{
status_text
}
"
)
def
__del__
(
self
):
self
.
delete
()
#
def __del__(self):
#
self.delete()
def
update_status
(
self
):
task_info
=
self
.
client
.
get_tasks
(
filter_string
=
self
.
id
)
\
...
...
@@ -565,6 +565,4 @@ class GVMClient():
def
delete_all_tasks
(
self
,
filter
:
str
):
tasks
=
self
.
get_tasks
(
filter
)
for
task
in
tasks
:
self
.
delete_task
(
task
)
self
.
delete_task
(
task
)
\ No newline at end of file
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