Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.core
Commits
0932aade
Commit
0932aade
authored
Jun 30, 2023
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise: Remove obsolete legacy code
parent
a948dbfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
slapos/grid/promise/generic.py
slapos/grid/promise/generic.py
+1
-8
No files found.
slapos/grid/promise/generic.py
View file @
0932aade
...
@@ -41,8 +41,6 @@ import six
...
@@ -41,8 +41,6 @@ import six
from
six
import
PY3
,
with_metaclass
from
six
import
PY3
,
with_metaclass
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
,
timedelta
from
pkg_resources
import
parse_version
PROMISE_STATE_FOLDER_NAME
=
'.slapgrid/promise'
PROMISE_STATE_FOLDER_NAME
=
'.slapgrid/promise'
PROMISE_RESULT_FOLDER_NAME
=
'.slapgrid/promise/result'
PROMISE_RESULT_FOLDER_NAME
=
'.slapgrid/promise/result'
PROMISE_LOG_FOLDER_NAME
=
'.slapgrid/promise/log'
PROMISE_LOG_FOLDER_NAME
=
'.slapgrid/promise/log'
...
@@ -496,11 +494,6 @@ class GenericPromise(with_metaclass(ABCMeta, object)):
...
@@ -496,11 +494,6 @@ class GenericPromise(with_metaclass(ABCMeta, object)):
elif (not self.__is_tested and not check_anomaly) or
\
elif (not self.__is_tested and not check_anomaly) or
\
(not self.__is_anomaly_detected and check_anomaly):
(not self.__is_anomaly_detected and check_anomaly):
# Anomaly or Test is disabled on this promise, send empty
# Anomaly or Test is disabled on this promise, send empty
slapgrid_version = self.getConfig('
slapgrid
-
version
', '')
if parse_version(slapgrid_version) <= parse_version('
1.4
.
17
'):
# old version cannot send EmptyResult
self.__sendResult(PromiseQueueResult(item=TestResult()))
else:
self.__sendResult(PromiseQueueResult())
self.__sendResult(PromiseQueueResult())
else:
else:
try:
try:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment