Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Joanne Hugé
slapos.toolbox
Commits
610cbfd3
Commit
610cbfd3
authored
Mar 06, 2023
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check_websocket_available: don't check valid SSL
parent
ea9878eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapos/promise/plugin/check_websocket_available.py
slapos/promise/plugin/check_websocket_available.py
+6
-1
No files found.
slapos/promise/plugin/check_websocket_available.py
View file @
610cbfd3
...
@@ -21,6 +21,7 @@ from zope.interface import implementer
...
@@ -21,6 +21,7 @@ from zope.interface import implementer
from
slapos.grid.promise
import
interface
from
slapos.grid.promise
import
interface
from
slapos.grid.promise.generic
import
GenericPromise
from
slapos.grid.promise.generic
import
GenericPromise
import
ssl
import
websocket
import
websocket
@
implementer
(
interface
.
IPromise
)
@
implementer
(
interface
.
IPromise
)
...
@@ -45,7 +46,11 @@ class RunPromise(GenericPromise):
...
@@ -45,7 +46,11 @@ class RunPromise(GenericPromise):
content_to_receive
=
self
.
getConfig
(
'content-to-receive'
)
content_to_receive
=
self
.
getConfig
(
'content-to-receive'
)
try
:
try
:
ws
=
websocket
.
create_connection
(
url
,
timeout
=
int
(
self
.
getConfig
(
'timeout'
,
default_timeout
)))
ws
=
websocket
.
create_connection
(
url
,
timeout
=
int
(
self
.
getConfig
(
'timeout'
,
default_timeout
)),
sslopt
=
{
"cert_reqs"
:
ssl
.
CERT_NONE
}
)
except
websocket
.
_exceptions
.
WebSocketBadStatusException
:
except
websocket
.
_exceptions
.
WebSocketBadStatusException
:
self
.
logger
.
error
(
self
.
logger
.
error
(
"ERROR connection not possible while accessing %r"
,
url
)
"ERROR connection not possible while accessing %r"
,
url
)
...
...
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